Testing CivicActions Guidebook site for accessibility issues using pa11y-ci
and axe
.
View the report of all pages of the site. The report can also be downloaded from GitHub under ‘Artifacts’ and viewed locally.
GitHub action that will run pa11y-ci against the live site monthly.
pa11y-ci is configured with the file .pa11yci.
The pa11y-ci commands can also be run locally to generate the same test results:
npm run pa11y-ci:home
run pa11y-ci against the home page.npm run pa11y-ci:sitemap
run pa11y-ci against all URLs generated by the sitemap except for PDFs. This command throws the error ‘Error: Process completed with exit code 2.’ when there are accessibility issues detected.