diff --git a/tests/playwright/pages/Account/AppStore.ts b/tests/playwright/pages/Account/AppStore.ts index d95378be4f..0941de0377 100644 --- a/tests/playwright/pages/Account/AppStore.ts +++ b/tests/playwright/pages/Account/AppStore.ts @@ -10,8 +10,8 @@ export class AccountAppStorePage extends BasePage { this.accountPage = accountPage; } - async goto() { - await this.waitForResponse({ + goto() { + return this.waitForResponse({ uiAction: async () => await this.rootPage.goto('/#/account/apps'), httpMethodsToMatch: ['GET'], requestUrlPathToMatch: 'api/v1/db/meta/plugins', diff --git a/tests/playwright/pages/Account/License.ts b/tests/playwright/pages/Account/License.ts index 03cf8f1e11..11874ceaa9 100644 --- a/tests/playwright/pages/Account/License.ts +++ b/tests/playwright/pages/Account/License.ts @@ -13,7 +13,7 @@ export class AccountLicensePage extends BasePage { return this.rootPage.goto('/#/account/license'); } - async waitUntilContentLoads() { + waitUntilContentLoads() { return this.rootPage.waitForResponse(resp => resp.url().includes('api/v1/license') && resp.status() === 200); } diff --git a/tests/playwright/pages/Account/Settings.ts b/tests/playwright/pages/Account/Settings.ts index 0bf7e1589c..cd3b0c5dad 100644 --- a/tests/playwright/pages/Account/Settings.ts +++ b/tests/playwright/pages/Account/Settings.ts @@ -10,8 +10,8 @@ export class AccountSettingsPage extends BasePage { this.accountPage = accountPage; } - async goto() { - await this.waitForResponse({ + goto() { + return this.waitForResponse({ uiAction: async () => await this.rootPage.goto('/#/account/users/settings'), httpMethodsToMatch: ['GET'], requestUrlPathToMatch: `api/v1/app-settings`,