-
Notifications
You must be signed in to change notification settings - Fork 6
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: Add a11y tests and GitHub action #460
base: main
Are you sure you want to change the base?
Conversation
* New baseComponentPreview shortcode * Switch English pages to use iframe * Switch French pages to use iframe * Add logic to retain proper height in iframes * Uncomment action in a11y test * PR feedback: code refinement
Looks good, the tests are all successful. However, I can't get the build to finish (that's what's failing on the amplify side).
the last message is
Locally, here's what I'm getting when I run build:
It seems like a pagefind error of some sort? |
I was seeing those messages too until I deleted |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
This pull request is automatically being deployed by Amplify Hosting (learn more). |
@daine I fixed the deployment issue. I added a |
@@ -1,6 +1,6 @@ | |||
--- | |||
layout: 'layouts/base.njk' | |||
github: https://github.com/cds-snc/gcds-components/tree/main/packages/web/src/components/gcds-radio | |||
github: null | |||
figma: https://www.figma.com/file/mh2maMG2NBtk41k1O1UGHV/GC-Design-System?type=design&node-id=462-110&mode=design&t=juCIOMIg2VKfCrQA-0 | |||
permalink: false | |||
tags: ['radioEN', 'header'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove the "radio" pages? It's been deprecated for quite a while now.
@@ -1,6 +1,6 @@ | |||
--- | |||
layout: 'layouts/base.njk' | |||
github: https://github.com/cds-snc/gcds-components/tree/main/packages/web/src/components/gcds-radio | |||
github: null | |||
figma: https://www.figma.com/file/o4SguSZdar2CCFzSkWNrmB/Syst%C3%A8me-de-design-GC?type=design&node-id=348-5024&mode=design&t=1DaL24vHpjRRfHHm-0 | |||
permalink: false | |||
tags: ['radioFR', 'header'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment - should we remove these pages?
'log', | ||
`${violations.length} accessibility violation${ | ||
violations.length === 1 ? '' : 's' | ||
} ${violations.length === 1 ? 'was' : 'were'} detected`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the impact
level here as well, please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments, looks great otherwise! I'm excited to get this merged in :)
Summary | Résumé
Add cypress e2e test to test the accessibility of all pages on the documentation site. Also updated an old GitHub workflow to run these tests on pull request into main and merge into main.
Also includes some accessibility fixes that were identified by the tests, mostly misaligned HTML and headings.
How to use
Run tests in browser
npm run start
to start a local version of the documentation sitenpm run cy:open
Run tests in terminal
npm run cy:run
cds-snc/design-gc-conception#1192