datamade / how-to

📚 Doing all sorts of things, the DataMade way
MIT License
88 stars 12 forks source link

Chrome Lighthouse #245

Closed fgomez828 closed 2 years ago

fgomez828 commented 2 years ago

Breaking out convo about Lighthouse that started on issue #222.

The lowest-hanging fruit around increasing our accessibility includes the following:

For a thread concerning additional issues I tried addressing when working on the cps wagtail app, see this comment on the cps app accessibility issue

fgomez828 commented 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

hancush commented 2 years ago

Deliverable: Create a recipe adding Lighthouse to our CI. https://github.com/GoogleChrome/lighthouse-ci

Ideas:

hancush commented 2 years ago

N.b., there are existing Actions that might offer a good starting point! https://github.com/marketplace/actions/lighthouse-check

hancush commented 2 years ago

Initial draft done, @fatima3558 learning more about additional assessments surfaced in CI.

derekeder commented 2 years ago

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:

An example of this is in use here: https://github.com/chihacknight/decarbonize-my-state/issues/73

derekeder commented 2 years ago

A few other things I've learned about accessibility testing recently:

fgomez828 commented 2 years ago

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:

Screen Shot 2022-06-30 at 5 41 52 PM

But when I run the assessment on localhost through the browser tool, I get a 96:

Screen Shot 2022-06-30 at 5 41 20 PM

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:

Screen Shot 2022-06-30 at 5 35 53 PM

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.

derekeder commented 2 years ago

doing accessibility testing for the EFI site. Tracking progress here: https://github.com/datamade/mpc-efi/issues/92