From 71c87e5cbbedde99c9f63e15ecbc51c65d0fe14d Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 29 Sep 2022 22:47:26 +0530 Subject: [PATCH] test: local storage correction for pg meta sync suite Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/integration/common/1e_pg_meta_sync.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/cypress/integration/common/1e_pg_meta_sync.js b/scripts/cypress/integration/common/1e_pg_meta_sync.js index ab67562384..c6db15133a 100644 --- a/scripts/cypress/integration/common/1e_pg_meta_sync.js +++ b/scripts/cypress/integration/common/1e_pg_meta_sync.js @@ -18,14 +18,16 @@ export const genTest = (apiType, dbType) => { // Run once before test- create project (rest/graphql) // before(() => { - mainPage.tabReset(); + cy.restoreLocalStorage(); mainPage.openMetaTab(); }); - beforeEach(() => {}); + beforeEach(() => { + cy.restoreLocalStorage(); + }); - after(() => { - // mainPage.closeMetaTab(); + afterEach(() => { + cy.saveLocalStorage(); }); it(`Create table`, () => {