17 lines
589 B
TypeScript
17 lines
589 B
TypeScript
|
|
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([]);
|
||
|
|
});
|
||
|
|
|
||
|
|
test("jobs listing page should be accessible", async ({ page }) => {
|
||
|
|
await page.goto("/jobs");
|
||
|
|
const results = await new AxeBuilder({ page }).analyze();
|
||
|
|
expect(results.violations).toEqual([]);
|
||
|
|
});
|
||
|
|
});
|