From e1170c7826cd20338e0dfeaf74173d729a893baa Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 7 Feb 2024 12:26:52 +0000 Subject: [PATCH] test: remove unnecessary wait time --- tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts | 4 +++- tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts b/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts index 93ce2bbec2..ccde05658d 100644 --- a/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts +++ b/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts @@ -13,8 +13,10 @@ export class OpenIDLoginPage extends BasePage { async goto(title = 'test') { // reload page to get latest app info await this.rootPage.reload(); - await this.rootPage.waitForTimeout(1000); + await this.rootPage.waitForTimeout(500); 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(); } diff --git a/tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts b/tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts index fa6647808e..731f55c2f6 100644 --- a/tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts +++ b/tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts @@ -14,8 +14,11 @@ export class SAMLLoginPage extends BasePage { async goto(title = 'test') { // reload page to get latest app info await this.rootPage.reload(); - await this.rootPage.waitForTimeout(1000); + await this.rootPage.waitForTimeout(500); 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(); }