From 71eb5977e22e1ca1ff94200dc583d83850cfa823 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 7 Feb 2024 12:26:51 +0000 Subject: [PATCH] test: revert - skip restore --- tests/playwright/pages/SsoIdpPage/OpenIDLoginPage.ts | 3 ++- tests/playwright/pages/SsoIdpPage/SAMLLoginPage.ts | 3 ++- tests/playwright/setup/index.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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 {