Closed fgomez828 closed 2 years ago
Here is an example of a PR that addresses some of the easy fixes that google lighthouse surfaced: https://github.com/datamade/cps-ssce-dashboard/pull/410
Deliverable: Create a recipe adding Lighthouse to our CI. https://github.com/GoogleChrome/lighthouse-ci
Ideas:
N.b., there are existing Actions that might offer a good starting point! https://github.com/marketplace/actions/lighthouse-check
Initial draft done, @fatima3558 learning more about additional assessments surfaced in CI.
Related, I have added a list of Accessibility checks to the site launch checklist from @vkoves: https://github.com/datamade/site-launch-checklist/blob/master/README.md
Notably:
alt=""
for decorative images)An example of this is in use here: https://github.com/chihacknight/decarbonize-my-state/issues/73
A few other things I've learned about accessibility testing recently:
Spent some time today trying to figure out why the lighthouse browser tool was giving me different scores than the github lighthouse action. For example, the CI score for a blog page is currently 87:
But when I run the assessment on localhost through the browser tool, I get a 96:
If I run the assessment on a page without any data loaded, the score is more in line with the scores we're getting through the CI tests:
This makes me wonder whether CI tests for accessibility make sense for a CMS app like CPS? Given that the CI only tests the templates, it won't test the pages as they will look on a production app.
doing accessibility testing for the EFI site. Tracking progress here: https://github.com/datamade/mpc-efi/issues/92
Breaking out convo about Lighthouse that started on issue #222.
The lowest-hanging fruit around increasing our accessibility includes the following:
alt
attribsid
attribs; this is a problem particularly when using bootstrap to create nav items, for exampleFor a thread concerning additional issues I tried addressing when working on the cps wagtail app, see this comment on the cps app accessibility issue