playwright-test-commons - v0.8.0
    Preparing search index...

    Function scanA11y

    • Runs axe-core over the whole page as it is now.

      Parameters

      Returns Promise<A11yViolation[]>

      the violations; empty when the page passes

      Error if @axe-core/playwright isn't installed

      const violations = await scanA11y(page, { tags: ["wcag2a"] });