From 06af8b3202de28a318cd806ca9d558af801fa53e Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 10 Feb 2021 17:00:22 -0700 Subject: [PATCH] refactor: update goHome location in test --- test/goHome.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/goHome.test.ts b/test/goHome.test.ts index 57712e5a..1c608875 100644 --- a/test/goHome.test.ts +++ b/test/goHome.test.ts @@ -35,7 +35,6 @@ describe("login", () => { // otherwise if it doesn't exist, it will create it // hence the name maybeUpdatedCookies const maybeUpdatedCookies = createCookieIfDoesntExist(cookies, cookieToStore) - console.log("here are the cookies", maybeUpdatedCookies) context = await browser.newContext({ storageState: { cookies: maybeUpdatedCookies }, @@ -97,8 +96,8 @@ describe("login", () => { // In case the page takes a long time to load await page.goto(process.env.CODE_SERVER_ADDRESS || "http://localhost:8080", { waitUntil: "domcontentloaded" }) - // Click the Application menu - await page.click(".menubar-menu-button[title='Application Menu']") + // Click the Home menu + await page.click(".home-bar ul[aria-label='Home'] li") // See the Go Home button const goHomeButton = "a.action-menu-item span[aria-label='Go Home']" expect(await page.isVisible(goHomeButton))