From e85dac6cf0f139c353ef1ab7ba0256cb742c4d42 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 27 Sep 2022 16:12:50 +0530 Subject: [PATCH] test: shared view, disable local storage clear routine Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/integration/common/4f_grid_view_share.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/cypress/integration/common/4f_grid_view_share.js b/scripts/cypress/integration/common/4f_grid_view_share.js index b815200d68..0fadfd5ee7 100644 --- a/scripts/cypress/integration/common/4f_grid_view_share.js +++ b/scripts/cypress/integration/common/4f_grid_view_share.js @@ -39,12 +39,17 @@ export const genTest = (apiType, dbType) => { cy.getActiveModal(".nc-modal-share-view").should("not.be.visible"); }; + let clear; + describe(`${apiType.toUpperCase()} api - GRID view (Share)`, () => { // Run once before test- create project (rest/graphql) // before(() => { cy.restoreLocalStorage(); cy.openTableTab("Address", 25); + + clear = Cypress.LocalStorage.clear; + Cypress.LocalStorage.clear = () => {}; }); beforeEach(() => { @@ -61,6 +66,8 @@ export const genTest = (apiType, dbType) => { cy.restoreLocalStorage(); cy.closeTableTab("Address"); cy.saveLocalStorage(); + + Cypress.LocalStorage.clear = clear; }); // Common routine to create/edit/delete GRID & GALLERY view