Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41a4516

Browse files
committed
Fix broken import
1 parent 7c568de commit 41a4516

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

site/e2e/pom/BasePom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Page } from "@playwright/test"
22

33
export abstract class BasePom {
4-
abstract readonly url: string
4+
abstract get url(): string
55

66
protected page: Page
77
protected baseURL: string | undefined

site/e2e/pom/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export * from "./ProjectsPage"
12
export * from "./SignInPage"

site/e2e/tests/login.spec.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { test } from "@playwright/test"
2-
import { SignInPage } from "../pom"
2+
import { ProjectsPage, SignInPage } from "../pom"
33
import { email, password } from "../constants"
4-
import ProjectPage from "../../pages/projects/[organization]/[project]"
54

65
test("Login takes user to /projects", async ({ baseURL, page }) => {
76
await page.goto(baseURL + "/", { waitUntil: "networkidle" })
@@ -10,7 +9,7 @@ test("Login takes user to /projects", async ({ baseURL, page }) => {
109
const signInPage = new SignInPage(baseURL, page)
1110
await signInPage.submitBuiltInAuthentication(email, password)
1211

13-
const projectsPage = new ProjectPage(baseURL, page)
12+
const projectsPage = new ProjectsPage(baseURL, page)
1413
await page.waitForNavigation({ url: projectsPage.url, waitUntil: "networkidle" })
1514

1615
await page.waitForSelector("text=Projects")

0 commit comments

Comments
 (0)