We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 090687d commit 9eff1f0Copy full SHA for 9eff1f0
test/e2e/logout.test.ts
@@ -47,11 +47,8 @@ describe("logout", () => {
47
await page.hover(logoutButton)
48
49
await page.click(logoutButton)
50
- // it takes a second to navigate
51
- // and since page.url comes back immediately
52
- // we need this waitForNavigation, otherwise it will check
53
- // before navigation has finished and fail
54
- await page.waitForNavigation({ url: `${CODE_SERVER_ADDRESS}/login` })
+ // it takes a couple seconds to navigate
+ await page.waitForTimeout(2000)
55
const currentUrl = page.url()
56
expect(currentUrl).toBe(`${CODE_SERVER_ADDRESS}/login`)
57
})
0 commit comments