Skip to content

[SG-33093.8] Enable accessibilityAudit on `client/web/src/integration/search-contexts.test.ts`

Warren Gifford requested to merge contractors/SG-33093.8 into main

Created by: gitstart-sourcegraph

Description

Enable accessibility audit on client/web/src/integration/search-contexts.test.ts

Implementation details

Here's how we should implement:

  • Add accessibilityAudit in the same place where we call percySnapshot in the integration tests.
  • Run the tests locally and observe any failures..

To fix the failures, we should:

  1. 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.
  2. 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

SG Issue Gitstart Ticket

Test plan

Run the integration test ENTERPRISE=1 HEADLESS=true yarn test-integration:base client/web/src/integration/search-contexts.test.ts

Success criteria

  • All integration tests with Percy snapshots have accessibility audit enabled

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading