We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5596f97 commit 28afb37Copy full SHA for 28afb37
test/e2e/logout.test.ts
@@ -7,7 +7,7 @@ describe("logout", () => {
7
let context: BrowserContext
8
9
beforeAll(async () => {
10
- browser = await chromium.launch({ headless: false })
+ browser = await chromium.launch()
11
context = await browser.newContext({
12
recordVideo: { dir: E2E_VIDEO_DIR },
13
})
@@ -45,7 +45,8 @@ describe("logout", () => {
45
expect(await page.isVisible(logoutButton))
46
47
await page.hover(logoutButton)
48
- await page.click(logoutButton)
+
49
+ await Promise.all([page.waitForNavigation(), page.click(logoutButton)])
50
51
const currentUrl = await page.url()
52
expect(currentUrl).toBe(`${CODE_SERVER_ADDRESS}/login`)
0 commit comments