Added accessibility tests

This commit is contained in:
adilallo
2025-08-29 12:52:49 -06:00
parent f676f8ec24
commit 705cfed075
6 changed files with 606 additions and 11 deletions
+7 -2
View File
@@ -1,5 +1,10 @@
import { injectAxe, checkA11y } from '@axe-core/playwright';
import { injectAxe, checkA11y } from "@axe-core/playwright";
export async function runA11y(page, options = {}) {
await injectAxe(page);
await checkA11y(page, undefined, { detailedReport: true, detailedReportOptions: { html: true }, ...options });
await checkA11y(page, undefined, {
detailedReport: true,
detailedReportOptions: { html: true },
...options,
});
}