From e47eabf375d6019dcef506a52720ab8d9d305cfa Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 5 Mar 2021 11:58:17 -0700 Subject: [PATCH] fix: goHome test after location change --- test/goHome.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/goHome.test.ts b/test/goHome.test.ts index 31cd773c..40d6a838 100644 --- a/test/goHome.test.ts +++ b/test/goHome.test.ts @@ -73,8 +73,11 @@ describe("go home", () => { // In case the page takes a long time to load await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "domcontentloaded" }) + // Make sure the editor actually loaded + expect(await page.isVisible("div.monaco-workbench")) + // Click the Home menu - await page.click(".home-bar ul[aria-label='Home'] li") + await page.click("[aria-label='Application Menu']") // See the Go Home button const goHomeButton = "a.action-menu-item span[aria-label='Go Home']" expect(await page.isVisible(goHomeButton)) -- GitLab