From 54eb0e5cba27c23babdc0afaeab2a4ddcc5b4aac Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 24 Sep 2022 14:50:48 +0530 Subject: [PATCH] test(quick): disable local storage clearing between tests Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/integration/common/9a_QuickTest.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/cypress/integration/common/9a_QuickTest.js b/scripts/cypress/integration/common/9a_QuickTest.js index 3714e4946e..24481a2604 100644 --- a/scripts/cypress/integration/common/9a_QuickTest.js +++ b/scripts/cypress/integration/common/9a_QuickTest.js @@ -89,6 +89,8 @@ function verifyWebhook(config) { } export const genTest = (apiType, dbType, testMode) => { + let clear; + if (!isTestSuiteActive(apiType, dbType)) return; describe(`Quick Tests`, () => { let cellIdx = 1; @@ -115,6 +117,9 @@ export const genTest = (apiType, dbType, testMode) => { cy.openTableTab("Film", 3); cy.saveLocalStorage(); + + clear = Cypress.LocalStorage.clear; + Cypress.LocalStorage.clear = () => {}; }); beforeEach(() => { @@ -129,6 +134,8 @@ export const genTest = (apiType, dbType, testMode) => { cy.restoreLocalStorage(); cy.signOut(); cy.saveLocalStorage(); + + Cypress.LocalStorage.clear = clear; }); it("Verify Schema", () => {