Browse Source

fix(playwright): goto function

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
9fab56c234
  1. 4
      tests/playwright/pages/Account/License.ts
  2. 4
      tests/playwright/pages/Account/Token.ts
  3. 4
      tests/playwright/pages/Account/Users.ts
  4. 4
      tests/playwright/pages/Dashboard/index.ts

4
tests/playwright/pages/Account/License.ts

@ -9,8 +9,8 @@ export class AccountLicensePage extends BasePage {
this.accountPage = accountPage;
}
async goto() {
await this.rootPage.goto('/#/account/license');
goto() {
return this.rootPage.goto('/#/account/license');
}
async waitUntilContentLoads() {

4
tests/playwright/pages/Account/Token.ts

@ -14,8 +14,8 @@ export class AccountTokenPage extends BasePage {
this.createModal = accountPage.rootPage.locator(`.nc-modal-generate-token`);
}
async goto() {
await this.rootPage.goto('/#/account/tokens');
goto() {
return this.rootPage.goto('/#/account/tokens');
}
get() {

4
tests/playwright/pages/Account/Users.ts

@ -17,8 +17,8 @@ export class AccountUsersPage extends BasePage {
this.changePasswordPage = new ChangePasswordPage(this.rootPage);
}
async goto() {
await this.rootPage.goto('/#/account/users/list');
goto() {
return this.rootPage.goto('/#/account/users/list');
}
get() {

4
tests/playwright/pages/Dashboard/index.ts

@ -64,8 +64,8 @@ export class DashboardPage extends BasePage {
return this.rootPage.locator('html');
}
async goto() {
await this.rootPage.goto(`/#/nc/${this.project.id}/auth`);
goto() {
return this.rootPage.goto(`/#/nc/${this.project.id}/auth`);
}
getProjectMenuLink({ title }: { title: string }) {

Loading…
Cancel
Save