This repository demonstrates integrating automated accessibility testing tools into a continuous integration/deployment (CI/CD) workflow.
It demonstrates the use of two separate tools:
- pa11y-ci,
- cypress-axe with Cypress (see this blog post).
The repo contains example fails and passes pages, and corresponding end-to-end tests.
The GDS Accessibility team found that only ~30% of issues are found by automated testing.
You'll also need to:
- test your interface with the assistive technologies that real users use (see also WebAIM's survey results).
- include disabled people in user research.
npm install
npm run lint
npm run start:detached
npm run test:cypress
npm run test:pa11y-ci
_SPEC=pass npm run test:cypress