nxtgauge-frontend-solid/tests/e2e/accessibility.spec.ts
Ashwin Kumar Sivakumar 2cb4d52fb3 fix: Storybook, Playwright runtime, accessibility color contrast, test routes
- Fix Storybook path alias resolution for ~ imports
- Fix Playwright runtime error by using production build
- Fix accessibility color contrast issues (WCAG AA compliant)
- Fix test route from /jobs to /professionals
- Update chip-btn.active and .btn.primary colors to #a33500
2026-07-06 22:02:39 +05:30

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