CheckOps
cypress-axe
cypress-axe is an MIT-licensed set of custom Cypress commands that inject axe-core into the page under test and check for accessibility violations with cy.checkA11y.
- Accessibility Testing
- Web Testing
- Open source
- Free
- Javascript
- Cypress
- Library
- End-to-end & functional
- Accessibility
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
cypress-axe adds accessibility testing to Cypress end-to-end and component tests using Deque’s open-source axe-core engine. Because it runs inside your existing Cypress tests, you can check accessibility in realistic states, such as after logging in, opening a modal or submitting a form with errors, which page-level scanners often miss.
The README documents three main commands. cy.injectAxe() injects the axe-core runtime into the page and must run after cy.visit(); an optional axeCorePath points to a custom axe-core build. cy.configureAxe() configures axe with custom rules, checks or locale. cy.checkA11y() runs the analysis, optionally scoped to a selector, with axe options such as rule tags (wcag2a, wcag2aa) or included impact levels, a violation callback for custom logging, and a skipFailures flag for reporting without failing. axe-core is a peer dependency, so you control its version. Version 1.7.0 was released on 29 August 2025, with repository activity in September 2026.
The source code is at component-driven/cypress-axe on GitHub under the MIT licence, with about 640 stars; the most recent commit was on 3 September 2026.
Features
- In-test accessibility checks: Check real application states.
- Scoped checks: Test specific components or regions.
- Configurable rules: Tags, impacts and custom rules.
- Custom reporting: Violation callbacks for logs or tables.
Pros
- Free to use: Open source under the MIT licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 3 September 2026.
Cons
- Cypress only: For other runners use @axe-core/playwright or jest-axe.
- Automated limits: axe-core finds a subset of WCAG issues.
Usage and Links (Example)
npm install --save-dev cypress-axe axe-core
// cypress/support/e2e.js
import "cypress-axe";
// cypress/e2e/checkout.cy.js
describe("checkout", () => {
it("has no detectable a11y violations", () => {
cy.visit("/checkout");
cy.injectAxe();
cy.get("[data-cy=pay]").click();
cy.checkA11y("main", { runOnly: { type: "tag", values: ["wcag2a", "wcag2aa"] } });
});
});
Resources:
Pricing
cypress-axe is free and open source under the MIT licence.
Recommended for?
- Cypress users adding accessibility checks to existing tests.
- Teams testing dynamic UI states such as modals and errors.
Conclusion
cypress-axe is the standard way to bring axe-core accessibility checks into Cypress tests.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with cypress-axe side by side.
Aaxe-coreaxe-core is Deque's open-source accessibility rules engine. It checks rendered HTML and reports WCAG violations as JSON.Compare with cypress-axe
CCypressFast, easy and reliable testing for anything that runs in a browser.Compare with cypress-axe
Jjest-axejest-axe is an MIT-licensed custom Jest matcher that runs axe-core against rendered HTML or components and asserts toHaveNoViolations, with colour contrast checks disabled because JSDOM cannot compute them.Compare with cypress-axe
IIBM Equal Access Accessibility CheckerIBM's Equal Access Accessibility Checker is an Apache-2.0 toolkit of browser extensions and Node packages (accessibility-checker, cypress-accessibility-checker) for automated accessibility testing with baselines and configurable policies.Compare with cypress-axe
PPa11y CIPa11y CI is an LGPL-3.0 accessibility test runner built on Pa11y for continuous integration, testing lists of URLs or entire sitemaps against WCAG and failing builds on issues.Compare with cypress-axe
SStorybook Accessibility AddonStorybook's accessibility addon (@storybook/addon-a11y) runs axe-core checks on every story, showing violations in an Accessibility panel and enabling automated accessibility tests through Storybook's test tooling.Compare with cypress-axe