Skip to content

Commit 82641ab

Browse files
committed
Fix e2e test
1 parent 71bf439 commit 82641ab

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Page } from "@playwright/test"
22
import { BasePom } from "./BasePom"
33

4-
export class TemplatesPage extends BasePom {
4+
export class WorkspacesPage extends BasePom {
55
constructor(baseURL: string | undefined, page: Page) {
6-
super(baseURL, "/templates", page)
6+
super(baseURL, "/workspaces", page)
77
}
88
}

site/e2e/pom/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./SignInPage"
2-
export * from "./TemplatesPage"
2+
export * from "./WorkspacesPage"

site/e2e/tests/login.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { test } from "@playwright/test"
22
import { email, password } from "../constants"
3-
import { SignInPage, TemplatesPage } from "../pom"
3+
import { SignInPage, WorkspacesPage } from "../pom"
44
import { waitForClientSideNavigation } from "./../util"
55

6-
test("Login takes user to /templates", async ({ baseURL, page }) => {
6+
test("Login takes user to /workspaces", async ({ baseURL, page }) => {
77
await page.goto(baseURL + "/", { waitUntil: "networkidle" })
88

99
// Log-in with the default credentials we set up in the development server
1010
const signInPage = new SignInPage(baseURL, page)
1111
await signInPage.submitBuiltInAuthentication(email, password)
1212

13-
const templatesPage = new TemplatesPage(baseURL, page)
14-
await waitForClientSideNavigation(page, { to: templatesPage.url })
13+
const workspacesPage = new WorkspacesPage(baseURL, page)
14+
await waitForClientSideNavigation(page, { to: workspacesPage.url })
1515

16-
await page.waitForSelector("text=Templates")
16+
await page.waitForSelector("text=Workspaces")
1717
})

0 commit comments

Comments
 (0)