From 32dbf8017aeab06041992064feaf70953ef86e19 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Tue, 29 Oct 2019 12:58:49 +0200 Subject: Introduce cy.clearSessionStorage Issue-ID: VID-647 Change-Id: I51471f736577599c1ace8e330a4db089deccc8ca Signed-off-by: Ittay Stern --- .../cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts') diff --git a/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts index 0d94e600c..f111189fc 100644 --- a/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/viewEditUpgradeVfModule.e2e.ts @@ -47,9 +47,7 @@ describe('View Edit Page: Upgrade VFModule', function () { let jsonBuilderAaiServiceInstances: JsonBuilder = new JsonBuilder(); beforeEach(() => { - cy.window().then((win) => { - win.sessionStorage.clear(); - }); + cy.clearSessionStorage(); cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicService.json').then((res) => { jsonBuilderAAIService.basicJson( res, @@ -130,7 +128,7 @@ describe('View Edit Page: Upgrade VFModule', function () { describe('More UI tests', () => { beforeEach(() => { - cy.window().then((win) => {win.sessionStorage.clear();}); + cy.clearSessionStorage(); cy.setTestApiParamToVNF(); cy.initVidMock(); cy.login(); -- cgit 1.2.3-korg