Browse Source

chore(playwrights): use waitForResponse

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
6f832bc9a1
  1. 7
      tests/playwright/pages/Account/License.ts

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

@ -10,8 +10,11 @@ export class AccountLicensePage extends BasePage {
}
async goto() {
await this.rootPage.goto(`/#/account/license`);
return this.waitUntilContentLoads();
return this.waitForResponse({
uiAction: async () => await this.rootPage.goto('/#/account/license'),
httpMethodsToMatch: ['GET'],
requestUrlPathToMatch: `api/v1/license`,
});
}
async waitUntilContentLoads() {

Loading…
Cancel
Save