Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(a11y): add axe core test to unauthenticated landing page #368

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

billhimmelsbach
Copy link
Contributor

@billhimmelsbach billhimmelsbach commented Apr 2, 2024

Currently we have to run accessibility tests locally via extensions or CLI tools, but axe-core could run right next to our other cypress tests.

Changes

  • add axe-core and axe-cypress
  • make necessary config changes
  • write proof of concept test
  • update design-system-react with latest changes

How to test this PR

  1. Do the new accessibility tests pass?

Screenshots

With an accessibility error (header is a div instead of semantic html)
Screenshot 2024-04-02 at 2 11 41 PM

Without an accessibility error (semantic header fixed in DSR)
Screenshot 2024-04-02 at 2 41 41 PM

Notes

  • We can make some improvements on reporting and extend the reach of this testing beyond the unauthenticated landing page in future PRs

@billhimmelsbach billhimmelsbach changed the base branch from main to 359-add-skip-links-to-main April 2, 2024 21:02
@billhimmelsbach billhimmelsbach changed the base branch from 359-add-skip-links-to-main to main April 2, 2024 21:12
@billhimmelsbach billhimmelsbach changed the title 366 add axe core to cypress tests feat(a11y): add axe core test to unauthenticated landing page Apr 2, 2024
@billhimmelsbach billhimmelsbach marked this pull request as ready for review April 2, 2024 21:42
Closes #376

Easy command to run Cypress against local without changing ENV vars or
config files

yarn test:e2e:headless:local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants