File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { Page } from "@playwright/test"
2
2
import { BasePom } from "./BasePom"
3
3
4
- export class TemplatesPage extends BasePom {
4
+ export class WorkspacesPage extends BasePom {
5
5
constructor ( baseURL : string | undefined , page : Page ) {
6
- super ( baseURL , "/templates " , page )
6
+ super ( baseURL , "/workspaces " , page )
7
7
}
8
8
}
Original file line number Diff line number Diff line change 1
1
export * from "./SignInPage"
2
- export * from "./TemplatesPage "
2
+ export * from "./WorkspacesPage "
Original file line number Diff line number Diff line change 1
1
import { test } from "@playwright/test"
2
2
import { email , password } from "../constants"
3
- import { SignInPage , TemplatesPage } from "../pom"
3
+ import { SignInPage , WorkspacesPage } from "../pom"
4
4
import { waitForClientSideNavigation } from "./../util"
5
5
6
- test ( "Login takes user to /templates " , async ( { baseURL, page } ) => {
6
+ test ( "Login takes user to /workspaces " , async ( { baseURL, page } ) => {
7
7
await page . goto ( baseURL + "/" , { waitUntil : "networkidle" } )
8
8
9
9
// Log-in with the default credentials we set up in the development server
10
10
const signInPage = new SignInPage ( baseURL , page )
11
11
await signInPage . submitBuiltInAuthentication ( email , password )
12
12
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 } )
15
15
16
- await page . waitForSelector ( "text=Templates " )
16
+ await page . waitForSelector ( "text=Workspaces " )
17
17
} )
You can’t perform that action at this time.
0 commit comments