commit | 32dbf8017aeab06041992064feaf70953ef86e19 | [log] [tgz] |
---|---|---|
author | Ittay Stern <ittay.stern@att.com> | Tue Oct 29 12:58:49 2019 +0200 |
committer | Ittay Stern <ittay.stern@att.com> | Tue Oct 29 13:25:05 2019 +0000 |
tree | 7b2afd8e0dc9b78d43a7128f02c42449887ac6f8 | |
parent | 6b3717d92d93e756f30c84e89dd5873226907e62 [diff] [blame] |
Introduce cy.clearSessionStorage Issue-ID: VID-647 Change-Id: I51471f736577599c1ace8e330a4db089deccc8ca Signed-off-by: Ittay Stern <ittay.stern@att.com>
diff --git a/vid-webpack-master/cypress/integration/iFrames/vnfGroups.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/vnfGroups.e2e.ts index cd21f4e..dc1b4bb 100644 --- a/vid-webpack-master/cypress/integration/iFrames/vnfGroups.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/vnfGroups.e2e.ts
@@ -6,8 +6,7 @@ var jsonBuilderAndMock: JsonBuilder<ServiceModel> = new JsonBuilder<ServiceModel>(); beforeEach(() => { - cy.window().then((win) => { - win.sessionStorage.clear(); + cy.clearSessionStorage(); cy.setReduxState(); cy.preventErrorsOnLoading(); cy.initAAIMock(); @@ -15,7 +14,6 @@ cy.permissionVidMock(); cy.setTestApiParamToVNF(); cy.login(); - }); }); afterEach(() => {