Skip to content

Commit 06af8b3

Browse files
committed
refactor: update goHome location in test
1 parent d0eece3 commit 06af8b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/goHome.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ describe("login", () => {
3535
// otherwise if it doesn't exist, it will create it
3636
// hence the name maybeUpdatedCookies
3737
const maybeUpdatedCookies = createCookieIfDoesntExist(cookies, cookieToStore)
38-
console.log("here are the cookies", maybeUpdatedCookies)
3938

4039
context = await browser.newContext({
4140
storageState: { cookies: maybeUpdatedCookies },
@@ -97,8 +96,8 @@ describe("login", () => {
9796
// In case the page takes a long time to load
9897
await page.goto(process.env.CODE_SERVER_ADDRESS || "http://localhost:8080", { waitUntil: "domcontentloaded" })
9998

100-
// Click the Application menu
101-
await page.click(".menubar-menu-button[title='Application Menu']")
99+
// Click the Home menu
100+
await page.click(".home-bar ul[aria-label='Home'] li")
102101
// See the Go Home button
103102
const goHomeButton = "a.action-menu-item span[aria-label='Go Home']"
104103
expect(await page.isVisible(goHomeButton))

0 commit comments

Comments
 (0)