Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add login verification assert
  • Loading branch information
rodrimaia committed Mar 29, 2023
commit 25d3b327388e016d912f80071dfe45075ceaa3f6
2 changes: 2 additions & 0 deletions site/e2e/tests/logout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ test("signing out redirects to login page", async ({ page, baseURL }) => {
await page.getByRole("menuitem", { name: "Sign Out" }).click()

await expect(page.getByRole("heading", { name: "Sign in to Coder" })).toBeVisible()

expect(page.url()).toMatch(/\/login$/) // ensure we're on the login page with no query params
})