Initial testing framework
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
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 });
|
||||
}
|
||||
Reference in New Issue
Block a user