Files
Rental-operations-platform/tests/a11y/component-system.a11y.spec.ts
T
2026-06-25 19:06:59 -04:00

13 lines
422 B
TypeScript

import AxeBuilder from '@axe-core/playwright';
import { expect, test } from '@playwright/test';
for (const locale of ['en', 'fr', 'ar'] as const) {
test(`${locale} component fixture has no detectable accessibility violations`, async ({
page,
}) => {
await page.goto(`/${locale}/component-lab`);
const results = await new AxeBuilder({ page }).analyze();
expect(results.violations).toEqual([]);
});
}