Browse Source

fix(playwright): add async to goto

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
cd32fc4a55
  1. 2
      tests/playwright/pages/Account/License.ts
  2. 2
      tests/playwright/pages/Account/Settings.ts
  3. 2
      tests/playwright/pages/Account/Token.ts
  4. 2
      tests/playwright/pages/Account/Users.ts
  5. 2
      tests/playwright/pages/Dashboard/index.ts
  6. 2
      tests/playwright/pages/LoginPage/index.ts
  7. 2
      tests/playwright/pages/SigninPage/index.ts
  8. 2
      tests/playwright/pages/SignupPage/index.ts

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

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

2
tests/playwright/pages/Account/Settings.ts

@ -10,7 +10,7 @@ export class AccountSettingsPage extends BasePage {
this.accountPage = accountPage;
}
goto() {
async goto() {
return this.waitForResponse({
uiAction: async () => await this.rootPage.goto('/#/account/users/settings'),
httpMethodsToMatch: ['GET'],

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

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

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

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

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

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

2
tests/playwright/pages/LoginPage/index.ts

@ -11,7 +11,7 @@ export class LoginPage extends BasePage {
return `nc_test_${parallelId}_${email}`;
}
goto() {
async goto() {
return this.rootPage.goto('/#/signin');
}

2
tests/playwright/pages/SigninPage/index.ts

@ -16,7 +16,7 @@ export class SigninPage extends BasePage {
return `nc_test_${parallelId}_${email}`;
}
goto() {
async goto() {
return this.rootPage.goto('/#/signin/');
}

2
tests/playwright/pages/SignupPage/index.ts

@ -16,7 +16,7 @@ export class SignupPage extends BasePage {
return `nc_test_${parallelId}_${email}`;
}
goto() {
async goto() {
return this.rootPage.goto('/#/signup/');
}

Loading…
Cancel
Save