accessibility.spec.ts 359 B

123456789101112
  1. import { injectAxe, checkA11y, getViolations, reportViolations } from 'axe-playwright'
  2. import { test } from './fixtures'
  3. import { createRandomPage } from './utils'
  4. test('check a11y for the whole page', async ({ page }) => {
  5. await injectAxe(page)
  6. await createRandomPage(page)
  7. await checkA11y(page, null, {
  8. detailedReport: true,
  9. })
  10. })