init project
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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([]);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user