Skip to content

Commit

Permalink
Skip a11y test for support page
Browse files Browse the repository at this point in the history
  • Loading branch information
monachilada committed Aug 7, 2024
1 parent 3ad3446 commit f76750a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/dito/tests/playwright/a11y/general.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import AxeBuilder from "@axe-core/playwright";
import { expect, test } from "@playwright/test";

import allRoutes from "resources/allRoutes";
import { ROUTE_SUPPORT } from "resources/staticRoutes";

test.describe("basic example a11y test", () => {
test("check a11y of all routes", async ({ page }) => {
for await (const route of allRoutes.filter(
(allRoute) => !allRoute.url.endsWith(".pdf"),
(allRoute) =>
!allRoute.url.endsWith(".pdf") &&
!allRoute.url.endsWith(ROUTE_SUPPORT.url),
)) {
await page.goto(route.url);
const accessibilityScanResults = await new AxeBuilder({ page }).analyze();
Expand Down

0 comments on commit f76750a

Please sign in to comment.