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 --- vid-webpack-master/cypress/integration/iFrames/pnf.e2e.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'vid-webpack-master/cypress/integration/iFrames/pnf.e2e.ts') diff --git a/vid-webpack-master/cypress/integration/iFrames/pnf.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/pnf.e2e.ts index a13094a6a..0e106188a 100644 --- a/vid-webpack-master/cypress/integration/iFrames/pnf.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/pnf.e2e.ts @@ -3,14 +3,12 @@ describe('Drawing board: PNF ', function() { beforeEach(() => { - cy.window().then((win) => { - win.sessionStorage.clear(); + cy.clearSessionStorage(); cy.setReduxState(); cy.preventErrorsOnLoading(); cy.initAAIMock(); cy.initVidMock(); cy.login(); - }); }); afterEach(() => { -- cgit 1.2.3-korg