Open mayank99 opened 1 year ago
Currently I'm working on it. I'm doing this tests with this library, is it okay? https://github.com/nickcolley/jest-axe @mayank99
I'm doing this tests with this library, is it okay? nickcolley/jest-axe
jest-axe is okay, but the problem is it runs in jsdom, so it won't be able to catch many of the issues such as color contrast. A better option would be to run aXe inside cypress/playwright or through storybook.
And of course that is only the first step. After that, we also need to do manual testing and document the results.
So I will do it with jest-axe firstly, after that I will add more test with cypress.
jest-axe does not guarantee that what you build is accessible but still jest-axe is good. @mayank99
cypress-axe
was correctly set up in https://github.com/iTwin/iTwinUI/pull/1352.
Next steps:
All components, especially the more complex ones, need to be tested for accessibility. The most basic form of this involves running automated tools (like axe) which could even be made of part of CI. A more useful form of this will involve testing with (at least) NVDA+Firefox/Chrome on Windows and VoiceOver+Safari on macOS, and also with Talkback+Android and VoiceOver+iOS where possible.
This issue can be used as a checklist to track the status of all components.
Status
Automated (using axe)
(already passing if not mentioned)
Manual accessibility audit
Pending.
Automated screen-reader testing
Pending.
See guidepup.