Skip to content

Commit

Permalink
Add "Remove all accounts" testing steps (#473)
Browse files Browse the repository at this point in the history
Motivation: We need to describe this scenario explicitly because during
the last release, this part was completely missed, and the issue was
(fortunately) discovered by accident 1 hour before the release.

Also, I simplified the SSO testing because we had three headers for
essentially the same thing.

## Test plan

N/A
  • Loading branch information
exigow authored Feb 6, 2024
1 parent 247dd2d commit 67c6910
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
## Checklist

- Onboarding
- [ ] [Sign in with GitHub](#sign-in-with-github)
- [ ] [Sign in with GitLab](#sign-in-with-gitlab)
- [ ] [Sign in with Google](#sign-in-with-google)
- [ ] [Sign in with GitHub, GitLab and Google](#sign-in-with-github-gitlab-and-google)
- [ ] [Remove all accounts](#remove-all-accounts)
- Autocomplete
- [ ] [Single-line autocomplete](#single-line-autocomplete)
- [ ] [Multi-line autocomplete](#multi-line-autocomplete)
Expand Down Expand Up @@ -35,7 +34,7 @@

## Onboarding

### Sign in with GitHub
### Sign in with GitHub, GitLab and Google

Prerequisite: You have to **sign out** from all existing accounts.

Expand All @@ -48,15 +47,19 @@ Prerequisite: You have to **sign out** from all existing accounts.
* IDE should receive a valid token automatically.
* `Commands` and `Chat` tabs are ready to use.

### Sign in with GitLab
Verify the remaining SSO methods by performing the same steps for `Sign in with GitLab` and `Sign in with Google`.

Onboarding through GitLab is similar to [Sign in with GitHub](#sign-in-with-github), and the authorization is also done
through the browser. Expected behaviour is identical.
### Remove all accounts

### Sign in with Google
Prerequisite: You have to be **signed in**. This is important because we expect certain components to be refreshed automatically.

Onboarding through GitLab is similar to [Sign in with GitHub](#sign-in-with-github), and the authorization is also done
through the browser. Expected behaviour is identical.
1. Navigate to `Settings` > `Sourcegraph & Cody`.
2. Remove all accounts and apply settings.

#### Expected behaviour

* Cody toolbar is automatically refreshed and the user is greeted with the `Welcome to Cody` panel.
* Status bar widget has a `No account signed-in` status. Status bar is located in the bottom right corner of the IDE.

## Autocomplete

Expand Down

0 comments on commit 67c6910

Please sign in to comment.