Enable accessibilityAudit on `client/web/src/integration/extension-registry.test.ts`
Created by: gitstart-sourcegraph
Description
Enable accessibility audit on client/web/src/integration/extension-registry.test.ts
Implementation details
Here's how we should implement:
- Add
accessibilityAudit
in the same place where we callpercySnapshot
in the integration tests. - Run the tests locally and observe any failures. See the above PR for example output.
To fix the failures, we should:
- If it's simple or quick to fix, then make the changes on the branch. There should be relevant documentation attached to the test error that will help you work out how to fix this.
- If it's complex, or will take a long time to fix. Add the
a11y-ignore
class to exclude the element from the audit, raise an issue specifically to solve this problem, leave a comment next to the class with a link to the issue.
Refs
Test plan
Run the integration test ENTERPRISE=1 HEADLESS=true yarn test-integration:base client/web/src/integration/extension-registry.test.ts
Success criteria
- All integration tests with percy snapshots have
accessibilityAudit
enabled
App preview:
Check out the client app preview documentation to learn more.