nxtgauge-frontend-solid/tests/e2e/accessibility.spec.ts
Ashwin Kumar f990b9a9e0 feat: comprehensive testing infrastructure (without workflow pending token scope)
- Add vitest, Playwright, ESLint, Prettier configs
- Add unit tests and e2e accessibility/visual tests
- Add MSW mocks and test setup
- Update scripts and .gitignore
- Install required dev dependencies

Note: GitHub Actions workflow will be added after token scope is granted.
2026-04-08 02:43:29 +02:00

16 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([]);
});
});