Skip to content

Commit

Permalink
reenable all the ACT tests (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson authored Jun 13, 2024
1 parent 051d99a commit 380819e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tests/act/act.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const response = await fetch("/testcases.json");
const json = await response.json();

const applicableRules = json.testcases.filter(
(rule) => rule.ruleAccessibilityRequirements
(rule) => rule.ruleAccessibilityRequirements,
);

const testCasesThatRedirect = [
Expand Down Expand Up @@ -117,6 +117,7 @@ const rulesToIgnore = [
"oj04fd",
"ucwvc8",
"ye5d6e",
"bf051a",
];

const ignoredExamples = [
Expand Down Expand Up @@ -145,15 +146,15 @@ describe("ACT Rules", function () {

if (
Object.keys(ruleAccessibilityRequirements).every(
(x) => !x.startsWith("wcag")
(x) => !x.startsWith("wcag"),
)
)
continue;

describe(`[${ruleId}] ${ruleName}`, function () {
it(`${testcaseTitle} (${exampleURL})`, async () => {
const testResponse = await fetch(
`/tests/act/fixtures/${testcaseId}.html`
`/tests/act/fixtures/${testcaseId}.html`,
);
if (testResponse.status !== 200) {
throw new Error("Couldn't find testcase HTML");
Expand Down
2 changes: 1 addition & 1 deletion web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (process.env.CI) {
export default {
nodeResolve: true,
coverage: true,
files: ["tests/**/*.ts"],
files: ["tests/**/*.ts", "tests/**/*.js"],
plugins: [esbuildPlugin({ ts: true, target: "esnext" })],
browsers,
filterBrowserLogs(log) {
Expand Down

0 comments on commit 380819e

Please sign in to comment.