Browse Source

test: shared view, disable local storage clear routine

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3801/head
Raju Udava 2 years ago committed by braks
parent
commit
e85dac6cf0
  1. 7
      scripts/cypress/integration/common/4f_grid_view_share.js

7
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

Loading…
Cancel
Save