Custom Playwright commands to run automated accessibility (a11y) checks using axe-core.
Axe-Playwright is a Node.js library that provides custom commands for Playwright to integrate axe-core for automated accessibility testing. It allows developers to run accessibility checks directly within their Playwright test suites, identifying violations against standards like WCAG. The tool helps ensure web applications are accessible by automating a11y audits during end-to-end testing.
Frontend developers, QA engineers, and DevOps teams using Playwright for browser automation who need to incorporate accessibility testing into their CI/CD pipelines.
Developers choose Axe-Playwright for its seamless integration with Playwright's multi-browser testing, flexible configuration options, and detailed reporting capabilities, making it a practical choice for embedding accessibility checks into existing test workflows.
:wheelchair:: Custom commands for Playwright to run accessibility (a11y) checks with axe-core
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically injects axe-core into Playwright pages, functioning across Chromium, Firefox, and WebKit without extra setup, as shown in the injectAxe command.
Supports customizing axe-core rules via axeOptions, running checks on specific elements or full pages, and filtering violations by impact level for targeted testing.
Offers terminal, detailed, HTML, and JUnit reporters, with examples for generating external reports that integrate well into CI/CD pipelines.
Includes skipFailures option to log violations without failing tests, ideal for introducing a11y checks into legacy applications progressively.
Only usable within Playwright test suites, limiting adoption for teams using other browser automation frameworks like Selenium or Cypress.
Requires deep knowledge of both axe-core's API and Playwright's context, with verbose options for rules and reporters that can be overwhelming for newcomers.
HTML reporter disables terminal log output by default, forcing a choice between report formats that might hinder real-time debugging during test runs.