Skip to content

Improve Percy + accessibilityAudit test coverage on `commits Page`

Administrator requested to merge contractors/SG-34403-5 into main

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 Commits Page

  1. Add percySnapshotWithVariants to store a visual snapshot for the test.
  2. 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.

Merge request reports

Loading