Improve Percy + accessibilityAudit test coverage on `Tags, Branches, and Compare Page`
Created by: gitstart-sourcegraph
Description
We currently have visual regression + accessibility audit tests on a series of user journeys within Sourcegraph. A lot of core functionality is still not covered, it reduces our confidence in shipping changes as UI/accessibility bugs can be introduced without our awareness.
Implementation
For this Tags Page, Branches, and Compare Page
- Add percySnapshotWithVariants to store a visual snapshot for the test.
- Add accessibilityAudit to run our accessibility tests, and fix any identified problems.
Refs
Sourcegraph Issue Gitstart Ticket
Test plan
Run ENTERPRISE=1 yarn build-web
Run ENTERPRISE=1 HEADLESS=true yarn _test-integration client/web/src/integration/repository.test.ts
Test should pass successfully
App preview:
Check out the client app preview documentation to learn more.