pages
pages copied to clipboard
Automated accessibility testing/reporting
Providing accessibility reports for all of the sites under pages.18f.gov
would help those site owners more easily track and squash accessibility bugs.
Can we generate a list of all the public URLs under the pages.18f.gov
domain?
The main dependency for actually running the tests would be pa11y
, an npm module, which could fit nicely inside hookshot.js
.
You can run pa11y
against an entire site that has a sitemap.xml with this:
wget -q http://localhost:1313/sitemap.xml --no-cache -O - | egrep -o "http://localhost:1313[^<]+" | xargs -I '{}' pa11y {}
Also, I totally get the merits of leaving testing/CI up to each individual repo and not centralizing this. But it's still worth considering.