Browse Source

test: skip clear of local storage for ltar suite

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3801/head
Raju Udava 2 years ago committed by braks
parent
commit
881eee0b23
  1. 13
      scripts/cypress/integration/common/3f_link_to_another_record.js

13
scripts/cypress/integration/common/3f_link_to_another_record.js

@ -7,6 +7,7 @@ export const genTest = (apiType, dbType) => {
// tbd: this needs a proper fix // tbd: this needs a proper fix
let waitTime = 2000; let waitTime = 2000;
let clear;
describe(`${apiType.toUpperCase()} api - Link to another record`, () => { describe(`${apiType.toUpperCase()} api - Link to another record`, () => {
function fetchParentFromLabel(label) { function fetchParentFromLabel(label) {
@ -118,10 +119,12 @@ export const genTest = (apiType, dbType) => {
cy.wait("@unlinkCount"); cy.wait("@unlinkCount");
} }
// before(() => { before(() => {
// // required for standalone test cy.restoreLocalStorage();
// // loginPage.loginAndOpenProject(apiType, dbType);
// }); clear = Cypress.LocalStorage.clear;
Cypress.LocalStorage.clear = () => {};
});
afterEach(() => { afterEach(() => {
cy.saveLocalStorage(); cy.saveLocalStorage();
@ -144,6 +147,8 @@ export const genTest = (apiType, dbType) => {
cy.deleteTable("Sheet2"); cy.deleteTable("Sheet2");
cy.saveLocalStorage(); cy.saveLocalStorage();
Cypress.LocalStorage.clear = clear;
}); });
/////////////////////////////////////////////////// ///////////////////////////////////////////////////

Loading…
Cancel
Save