Skip to content

Commit 25d3b32

Browse files
committed
chore: add login verification assert
1 parent 56e6ca6 commit 25d3b32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

site/e2e/tests/logout.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ test("signing out redirects to login page", async ({ page, baseURL }) => {
1010
await page.getByRole("menuitem", { name: "Sign Out" }).click()
1111

1212
await expect(page.getByRole("heading", { name: "Sign in to Coder" })).toBeVisible()
13+
14+
expect(page.url()).toMatch(/\/login$/) // ensure we're on the login page with no query params
1315
})

0 commit comments

Comments
 (0)