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; this.accountPage = accountPage;
} }
async goto() { goto() {
await this.rootPage.goto('/#/account/license'); return this.rootPage.goto('/#/account/license');
} }
async waitUntilContentLoads() { 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`); this.createModal = accountPage.rootPage.locator(`.nc-modal-generate-token`);
} }
async goto() { goto() {
await this.rootPage.goto('/#/account/tokens'); return this.rootPage.goto('/#/account/tokens');
} }
get() { get() {

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

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

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

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

Loading…
Cancel
Save