Browse Source

test: remove unnecessary wait time

pull/7569/head
Pranav C 11 months ago
parent
commit
a1a31103e0
  1. 4
      tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts
  2. 5
      tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts

4
tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts

@ -13,10 +13,8 @@ export class OpenIDLoginPage extends BasePage {
async goto(title = 'test') {
// reload page to get latest app info
await this.rootPage.reload();
await this.rootPage.waitForTimeout(500);
await this.rootPage.waitForTimeout(1000);
await this.rootPage.goto('/#/signin/');
await this.rootPage.waitForTimeout(500);
await this.rootPage.reload();
// click sign in with SAML
await this.rootPage.locator(`button:has-text("Sign in with ${title}")`).click();
}

5
tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts

@ -14,11 +14,8 @@ export class SAMLLoginPage extends BasePage {
async goto(title = 'test') {
// reload page to get latest app info
await this.rootPage.reload();
await this.rootPage.waitForTimeout(500);
await this.rootPage.waitForTimeout(1000);
await this.rootPage.goto('/#/signin/');
await this.rootPage.waitForTimeout(500);
await this.rootPage.reload();
// click sign in with SAML
await this.rootPage.locator(`button:has-text("Sign in with ${title}")`).click();
}

Loading…
Cancel
Save