Browse Source

fix(playwright): goto

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
564bfffe8a
  1. 4
      tests/playwright/pages/Account/AppStore.ts
  2. 4
      tests/playwright/pages/Account/ChangePassword.ts

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

@ -11,8 +11,8 @@ export class AccountAppStorePage extends BasePage {
}
async goto() {
return this.waitForResponse({
uiAction: async () => await this.rootPage.goto('/#/account/apps'),
await this.waitForResponse({
uiAction: () => this.rootPage.goto('/#/account/apps', { waitUntil: 'networkidle' }),
httpMethodsToMatch: ['GET'],
requestUrlPathToMatch: 'api/v1/db/meta/plugins',
});

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

@ -37,8 +37,8 @@ export class ChangePasswordPage extends BasePage {
await newPassword.fill(newPass);
await confirmPassword.fill(repeatPass);
const submitChangePassword = async () =>
await this.get().locator('button[data-testid="nc-user-settings-form__submit"]').click();
const submitChangePassword = () =>
this.get().locator('button[data-testid="nc-user-settings-form__submit"]').click();
if (networkValidation) {
await this.waitForResponse({
uiAction: submitChangePassword,

Loading…
Cancel
Save