Files
community-rule/tests/e2e/axe.ts
T
2025-08-29 12:52:49 -06:00

11 lines
269 B
TypeScript

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,
});
}