diff --git a/tests/playwright/pages/Account/License.ts b/tests/playwright/pages/Account/License.ts index acc5ef6ed7..43e417f733 100644 --- a/tests/playwright/pages/Account/License.ts +++ b/tests/playwright/pages/Account/License.ts @@ -11,7 +11,7 @@ export class AccountLicensePage extends BasePage { async goto() { await this.rootPage.goto(`/#/account/license`); - await this.waitUntilContentLoads(); + return this.waitUntilContentLoads(); } async waitUntilContentLoads() { diff --git a/tests/playwright/pages/Account/Users.ts b/tests/playwright/pages/Account/Users.ts index 2d59602d50..28874f8964 100644 --- a/tests/playwright/pages/Account/Users.ts +++ b/tests/playwright/pages/Account/Users.ts @@ -18,11 +18,16 @@ export class AccountUsersPage extends BasePage { } async goto() { - return this.waitForResponse({ + await this.waitForResponse({ uiAction: async () => await this.rootPage.goto('/#/account/users/list'), httpMethodsToMatch: ['GET'], requestUrlPathToMatch: `api/v1/users`, }); + return this.waitUntilContentLoads(); + } + + async waitUntilContentLoads() { + return this.rootPage.waitForResponse(resp => resp.url().includes('api/v1/users') && resp.status() === 200); } get() {