2026-04-08 02:43:29 +02:00
|
|
|
import { test, expect } from "@playwright/test";
|
|
|
|
|
import AxeBuilder from "@axe-core/playwright";
|
|
|
|
|
|
|
|
|
|
test.describe("Public Frontend Accessibility", () => {
|
|
|
|
|
test("homepage should have no accessibility violations", async ({ page }) => {
|
|
|
|
|
await page.goto("/");
|
|
|
|
|
const results = await new AxeBuilder({ page }).analyze();
|
|
|
|
|
expect(results.violations).toEqual([]);
|
|
|
|
|
});
|
|
|
|
|
|
2026-07-06 22:02:39 +05:30
|
|
|
test("professionals listing page should be accessible", async ({ page }) => {
|
|
|
|
|
await page.goto("/professionals");
|
2026-04-08 02:43:29 +02:00
|
|
|
const results = await new AxeBuilder({ page }).analyze();
|
|
|
|
|
expect(results.violations).toEqual([]);
|
|
|
|
|
});
|
|
|
|
|
});
|