Skip to content

Commit e47eabf

Browse files
committed
fix: goHome test after location change
1 parent 9cbf692 commit e47eabf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/goHome.test.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,11 @@ describe("go home", () => {
7373
// In case the page takes a long time to load
7474
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "domcontentloaded" })
7575

76+
// Make sure the editor actually loaded
77+
expect(await page.isVisible("div.monaco-workbench"))
78+
7679
// Click the Home menu
77-
await page.click(".home-bar ul[aria-label='Home'] li")
80+
await page.click("[aria-label='Application Menu']")
7881
// See the Go Home button
7982
const goHomeButton = "a.action-menu-item span[aria-label='Go Home']"
8083
expect(await page.isVisible(goHomeButton))

0 commit comments

Comments
 (0)