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(); }