diff --git a/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts b/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts index d964979ce9..93ce2bbec2 100644 --- a/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts +++ b/tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts @@ -13,7 +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.goto('/?skipRestore=true#/signin/'); + await this.rootPage.waitForTimeout(1000); + await this.rootPage.goto('/#/signin/'); // 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 762c666ace..fa6647808e 100644 --- a/tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts +++ b/tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts @@ -14,7 +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.goto('/?skipRestore=true#/signin/'); + await this.rootPage.waitForTimeout(1000); + await this.rootPage.goto('/#/signin/'); // click sign in with SAML await this.rootPage.locator(`button:has-text("Sign in with ${title}")`).click(); } diff --git a/tests/playwright/setup/index.ts b/tests/playwright/setup/index.ts index a4a23892eb..46a86f46e7 100644 --- a/tests/playwright/setup/index.ts +++ b/tests/playwright/setup/index.ts @@ -412,7 +412,7 @@ const setup = async ({ } await page.addInitScript( async ({ token }) => { - if (location.search?.match(/code=|short-token=|skipRestore/)) return; + if (location.search?.match(/code=|short-token=/)) return; try { let initialLocalStorage = {}; try {