Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82641ab

Browse files
committed
Fix e2e test
1 parent71bf439 commit82641ab

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-
exportclassTemplatesPageextendsBasePom{
4+
exportclassWorkspacesPageextendsBasePom{
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
awaitpage.goto(baseURL+"/",{waitUntil:"networkidle"})
88

99
// Log-in with the default credentials we set up in the development server
1010
constsignInPage=newSignInPage(baseURL,page)
1111
awaitsignInPage.submitBuiltInAuthentication(email,password)
1212

13-
consttemplatesPage=newTemplatesPage(baseURL,page)
14-
awaitwaitForClientSideNavigation(page,{to:templatesPage.url})
13+
constworkspacesPage=newWorkspacesPage(baseURL,page)
14+
awaitwaitForClientSideNavigation(page,{to:workspacesPage.url})
1515

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp