aria-ease 6.4.7 → 6.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -29
- package/bin/{chunk-TQBS54MM.js → chunk-GFKAJHCS.js} +3 -3
- package/bin/cli.cjs +890 -485
- package/bin/cli.js +1 -3
- package/bin/contractTestRunnerPlaywright-7BCEDPZF.js +970 -0
- package/bin/{test-WICJJ62P.js → test-JGKWOL6J.js} +34 -29
- package/dist/{chunk-TQBS54MM.js → chunk-GFKAJHCS.js} +3 -3
- package/dist/contractTestRunnerPlaywright-7BCEDPZF.js +970 -0
- package/dist/index.cjs +890 -483
- package/dist/index.js +34 -29
- package/dist/src/utils/test/{chunk-TQBS54MM.js → chunk-GFKAJHCS.js} +3 -3
- package/dist/src/utils/test/contractTestRunnerPlaywright-O7FF3X67.js +941 -0
- package/dist/src/utils/test/contracts/ComboboxContract.json +1 -0
- package/dist/src/utils/test/index.cjs +861 -477
- package/dist/src/utils/test/index.d.cts +6 -1
- package/dist/src/utils/test/index.d.ts +6 -1
- package/dist/src/utils/test/index.js +34 -29
- package/package.json +1 -1
- package/bin/contractTestRunnerPlaywright-D57V4RSU.js +0 -628
- package/dist/contractTestRunnerPlaywright-D57V4RSU.js +0 -628
- package/dist/src/utils/test/contractTestRunnerPlaywright-HV4EIRDH.js +0 -610
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ContractReporter,
|
|
3
3
|
closeSharedBrowser,
|
|
4
4
|
contract_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GFKAJHCS.js";
|
|
6
6
|
import "./chunk-I2KLQ2HA.js";
|
|
7
7
|
|
|
8
8
|
// src/accordion/src/makeAccordionAccessible/makeAccordionAccessible.ts
|
|
@@ -1539,7 +1539,7 @@ Error: ${error instanceof Error ? error.message : String(error)}`
|
|
|
1539
1539
|
const devServerUrl = await checkDevServer(url);
|
|
1540
1540
|
if (devServerUrl) {
|
|
1541
1541
|
console.log(`\u{1F3AD} Running Playwright tests on ${devServerUrl}`);
|
|
1542
|
-
const { runContractTestsPlaywright } = await import("./contractTestRunnerPlaywright-
|
|
1542
|
+
const { runContractTestsPlaywright } = await import("./contractTestRunnerPlaywright-7BCEDPZF.js");
|
|
1543
1543
|
contract = await runContractTestsPlaywright(componentName, devServerUrl);
|
|
1544
1544
|
} else {
|
|
1545
1545
|
throw new Error(
|
|
@@ -1594,6 +1594,11 @@ ${violationDetails}
|
|
|
1594
1594
|
return result;
|
|
1595
1595
|
}
|
|
1596
1596
|
var runTest = async () => {
|
|
1597
|
+
return {
|
|
1598
|
+
passes: [],
|
|
1599
|
+
failures: [],
|
|
1600
|
+
skipped: []
|
|
1601
|
+
};
|
|
1597
1602
|
};
|
|
1598
1603
|
if (typeof window === "undefined") {
|
|
1599
1604
|
runTest = async () => {
|
|
@@ -1601,36 +1606,36 @@ if (typeof window === "undefined") {
|
|
|
1601
1606
|
`);
|
|
1602
1607
|
const { exec } = await import("child_process");
|
|
1603
1608
|
const chalk = (await import("chalk")).default;
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
if (stdout) {
|
|
1609
|
+
return new Promise((resolve, reject) => {
|
|
1610
|
+
exec(
|
|
1611
|
+
`npx vitest --run --reporter verbose`,
|
|
1612
|
+
async (error, stdout, stderr) => {
|
|
1609
1613
|
console.log(stdout);
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1614
|
+
if (stderr) console.error(stderr);
|
|
1615
|
+
const testsPassed = !error || error.code === 0;
|
|
1616
|
+
if (testsPassed) {
|
|
1617
|
+
try {
|
|
1618
|
+
const { displayBadgeInfo, promptAddBadge } = await import("./badgeHelper-RDOMCC6E.js");
|
|
1619
|
+
displayBadgeInfo("component");
|
|
1620
|
+
await promptAddBadge("component", process.cwd());
|
|
1621
|
+
console.log(chalk.dim("\n" + "\u2500".repeat(60)));
|
|
1622
|
+
console.log(chalk.cyan("\u{1F499} Found aria-ease helpful?"));
|
|
1623
|
+
console.log(chalk.white(" \u2022 Star us on GitHub: ") + chalk.blue.underline("https://github.com/aria-ease/aria-ease"));
|
|
1624
|
+
console.log(chalk.white(" \u2022 Share feedback: ") + chalk.blue.underline("https://github.com/aria-ease/aria-ease/discussions"));
|
|
1625
|
+
console.log(chalk.dim("\u2500".repeat(60) + "\n"));
|
|
1626
|
+
} catch (badgeError) {
|
|
1627
|
+
console.error("Warning: Could not display badge prompt:", badgeError);
|
|
1628
|
+
}
|
|
1629
|
+
resolve({ passes: [], failures: [], skipped: [] });
|
|
1630
|
+
process.exit(0);
|
|
1631
|
+
} else {
|
|
1632
|
+
const exitCode = error?.code || 1;
|
|
1633
|
+
reject(new Error(`Tests failed with code ${exitCode}`));
|
|
1634
|
+
process.exit(exitCode);
|
|
1626
1635
|
}
|
|
1627
|
-
process.exit(0);
|
|
1628
|
-
} else {
|
|
1629
|
-
const exitCode = error?.code || 1;
|
|
1630
|
-
process.exit(exitCode);
|
|
1631
1636
|
}
|
|
1632
|
-
|
|
1633
|
-
);
|
|
1637
|
+
);
|
|
1638
|
+
});
|
|
1634
1639
|
};
|
|
1635
1640
|
}
|
|
1636
1641
|
async function cleanupTests() {
|
|
@@ -82,7 +82,7 @@ ${"\u2550".repeat(60)}`);
|
|
|
82
82
|
failureMessage,
|
|
83
83
|
isOptional: test.isOptional
|
|
84
84
|
};
|
|
85
|
-
if (status === "skip"
|
|
85
|
+
if (status === "skip") {
|
|
86
86
|
result.skipReason = "Requires real browser (addEventListener events)";
|
|
87
87
|
}
|
|
88
88
|
this.dynamicResults.push(result);
|
|
@@ -188,7 +188,7 @@ ${"\u2550".repeat(60)}`);
|
|
|
188
188
|
`);
|
|
189
189
|
if (totalFailures === 0 && this.skipped === 0 && this.optionalSuggestions === 0) {
|
|
190
190
|
this.log(`\u2705 All ${totalRun} tests passed!`);
|
|
191
|
-
this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard
|
|
191
|
+
this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard Interactions \u2713`);
|
|
192
192
|
} else if (totalFailures === 0) {
|
|
193
193
|
this.log(`\u2705 ${totalPasses}/${totalRun} required tests passed`);
|
|
194
194
|
if (this.skipped > 0) {
|
|
@@ -197,7 +197,7 @@ ${"\u2550".repeat(60)}`);
|
|
|
197
197
|
if (this.optionalSuggestions > 0) {
|
|
198
198
|
this.log(`\u{1F4A1} ${this.optionalSuggestions} optional enhancement${this.optionalSuggestions > 1 ? "s" : ""} suggested`);
|
|
199
199
|
}
|
|
200
|
-
this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard
|
|
200
|
+
this.log(` ${this.componentName} component meets WAI-ARIA expectations for Roles, States, Properties, and Keyboard Interactions \u2713`);
|
|
201
201
|
} else {
|
|
202
202
|
this.log(`\u274C ${totalFailures} test${totalFailures > 1 ? "s" : ""} failed`);
|
|
203
203
|
this.log(`\u2705 ${totalPasses} test${totalPasses > 1 ? "s" : ""} passed`);
|