Skip to content

Commit

Permalink
fixed textbase a11y test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed May 23, 2023
1 parent f12d5b3 commit a7e7394
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions testCafe/a11y/textbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ frameworks.forEach((framework) => {
}
);

test("axe check", async (t) => {
const { error, violations } = await axeCheck(t, this, {
test.only("axe check", async (t) => {
const axeContext = { include: [[".sv_p_root"]] };
const axeOptions = {
runOnly: {
type: "tag",
values: ["wcag21a", "wcag21aa"/*, 'wcag412'*/]
Expand All @@ -75,7 +76,8 @@ frameworks.forEach((framework) => {
enabled: false
}
}
});
};
const { error, violations } = await axeCheck(t, axeContext, axeOptions);
await t.expect(violations.length === 0).ok(createReport(violations));
});
});

0 comments on commit a7e7394

Please sign in to comment.