react-spectrum
09a258f0 - Add support for automated Storybook accessibility testing (#4820)

Commit
2 years ago
Add support for automated Storybook accessibility testing (#4820) * quick convert to csf 3 * cleanup and disabling aria-hidden rule * adding storybook test runner * sample failures for test to catch * Revert "sample failures for test to catch" This reverts commit 36fa68a5e60e28dcba709a27966dfcdda4c65376. * experimenting with interaction test * poking around to try and ignore aria rule for specific selector * test catching render errors and reuse play functions * using story axe config instead of manually setting it in main * fix lint and add keyboard interaction test * experiementing with jest-axe * testing interaction panel with simpler component * update yarn.lock * comments and cleanup * removing axe-core stuff this is a working commit before version bumping storybook interactions, for some reason it is breaking * disabling some false positives and run against all stories * fix storyName warning from storybook test runner * adding partial DnD interactions test * fixing yarn.lock after rebase * fixing package.json from rebase * update and cleanup tests + update to data test ids * fix/ignore various story only aXe issues (Card,Dialog, Landmark, DnD) some are fixed by adding ids/labels, other are ignored because they are story only tests cases and not part of the actual component accessibility * fix/ignore various story only aXe issues (ListBox, NumberField, Table, Toast, RAC) * fix/ignore various story only aXe issues (FocusScope, List, Checkbox, Meter, SideNav * fixing the rest of the failing false positive tests * fix lint
Author
Parents
Loading