sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

Frontend: Add web smoke tests #32671

Closed umpox closed 2 years ago

umpox commented 2 years ago

Description

We want to add frontend smoke tests that can quickly check basic Sourcegraph functionality to ensure our application is working correctly after a deployment.

Acceptance criteria

Prior context

See https://github.com/sourcegraph/sourcegraph/issues/31859 for further context on this issue.

A experimental PR that may be relevant is here: https://github.com/sourcegraph/sourcegraph/pull/29620. Note: This PR predates the issue above, so will need changing.

gitstart-app[bot] commented 2 years ago

Here is the GitStart Ticket for this issue: https://app.gitstart.com/clients/sourcegraph/tickets/SG-32671

umpox commented 2 years ago

@gitstart-sourcegraph Please take a look at this.

A good starting point would be to look at this initial PR for a while ago: https://github.com/sourcegraph/sourcegraph/pull/29620

We'll need to adapt it slightly and migrate it from Mocha to Jest.

EDIT: Hold slightly whilst we work out some points

umpox commented 2 years ago

@gitstart-sourcegraph Have unassigned this as there was some more investigation required that meant I focused on setting up the core foundation of the smoke tests.

Please close your linked issue too, we'll create new issues for additional work required in the smoke tests once the DevExp team start to integrate it with CI

umpox commented 2 years ago

Closed through https://github.com/sourcegraph/smoke-tests/tree/main/packages/web-functionality