Browse Source

test(quick): disable local storage clearing between tests

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3797/head
Raju Udava 2 years ago
parent
commit
54eb0e5cba
  1. 7
      scripts/cypress/integration/common/9a_QuickTest.js

7
scripts/cypress/integration/common/9a_QuickTest.js

@ -89,6 +89,8 @@ function verifyWebhook(config) {
} }
export const genTest = (apiType, dbType, testMode) => { export const genTest = (apiType, dbType, testMode) => {
let clear;
if (!isTestSuiteActive(apiType, dbType)) return; if (!isTestSuiteActive(apiType, dbType)) return;
describe(`Quick Tests`, () => { describe(`Quick Tests`, () => {
let cellIdx = 1; let cellIdx = 1;
@ -115,6 +117,9 @@ export const genTest = (apiType, dbType, testMode) => {
cy.openTableTab("Film", 3); cy.openTableTab("Film", 3);
cy.saveLocalStorage(); cy.saveLocalStorage();
clear = Cypress.LocalStorage.clear;
Cypress.LocalStorage.clear = () => {};
}); });
beforeEach(() => { beforeEach(() => {
@ -129,6 +134,8 @@ export const genTest = (apiType, dbType, testMode) => {
cy.restoreLocalStorage(); cy.restoreLocalStorage();
cy.signOut(); cy.signOut();
cy.saveLocalStorage(); cy.saveLocalStorage();
Cypress.LocalStorage.clear = clear;
}); });
it("Verify Schema", () => { it("Verify Schema", () => {

Loading…
Cancel
Save