refactor: update goHome location in test
This commit is contained in:
parent
d0eece3d8f
commit
06af8b3202
@ -35,7 +35,6 @@ describe("login", () => {
|
|||||||
// otherwise if it doesn't exist, it will create it
|
// otherwise if it doesn't exist, it will create it
|
||||||
// hence the name maybeUpdatedCookies
|
// hence the name maybeUpdatedCookies
|
||||||
const maybeUpdatedCookies = createCookieIfDoesntExist(cookies, cookieToStore)
|
const maybeUpdatedCookies = createCookieIfDoesntExist(cookies, cookieToStore)
|
||||||
console.log("here are the cookies", maybeUpdatedCookies)
|
|
||||||
|
|
||||||
context = await browser.newContext({
|
context = await browser.newContext({
|
||||||
storageState: { cookies: maybeUpdatedCookies },
|
storageState: { cookies: maybeUpdatedCookies },
|
||||||
@ -97,8 +96,8 @@ describe("login", () => {
|
|||||||
// In case the page takes a long time to load
|
// In case the page takes a long time to load
|
||||||
await page.goto(process.env.CODE_SERVER_ADDRESS || "http://localhost:8080", { waitUntil: "domcontentloaded" })
|
await page.goto(process.env.CODE_SERVER_ADDRESS || "http://localhost:8080", { waitUntil: "domcontentloaded" })
|
||||||
|
|
||||||
// Click the Application menu
|
// Click the Home menu
|
||||||
await page.click(".menubar-menu-button[title='Application Menu']")
|
await page.click(".home-bar ul[aria-label='Home'] li")
|
||||||
// See the Go Home button
|
// See the Go Home button
|
||||||
const goHomeButton = "a.action-menu-item span[aria-label='Go Home']"
|
const goHomeButton = "a.action-menu-item span[aria-label='Go Home']"
|
||||||
expect(await page.isVisible(goHomeButton))
|
expect(await page.isVisible(goHomeButton))
|
||||||
|
Reference in New Issue
Block a user