summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-10-29 12:58:49 +0200
committerIttay Stern <ittay.stern@att.com>2019-10-29 13:25:05 +0000
commit32dbf8017aeab06041992064feaf70953ef86e19 (patch)
tree7b2afd8e0dc9b78d43a7128f02c42449887ac6f8 /vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts
parent6b3717d92d93e756f30c84e89dd5873226907e62 (diff)
Introduce cy.clearSessionStorage
Issue-ID: VID-647 Change-Id: I51471f736577599c1ace8e330a4db089deccc8ca Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts')
-rw-r--r--vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts b/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts
index 55f90cc69..6bbbd7aab 100644
--- a/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts
+++ b/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts
@@ -1,21 +1,19 @@
///<reference path="../../../node_modules/cypress/types/index.d.ts"/>
/// <reference types="Cypress" />
-import { JsonBuilder } from '../../support/jsonBuilders/jsonBuilder';
-import { AsyncInstantiationModel } from '../../support/jsonBuilders/models/asyncInstantiation.model';
+import {JsonBuilder} from '../../support/jsonBuilders/jsonBuilder';
+import {AsyncInstantiationModel} from '../../support/jsonBuilders/models/asyncInstantiation.model';
describe('Error message popup', function () {
describe('show error on status 500', () => {
var jsonBuilderInstantiationBuilder : JsonBuilder<AsyncInstantiationModel> = new JsonBuilder<AsyncInstantiationModel>();
beforeEach(() => {
- cy.window().then((win) => {
- win.sessionStorage.clear();
+ cy.clearSessionStorage();
cy.setReduxState();
cy.preventErrorsOnLoading();
cy.initAAIMock();
cy.initVidMock();
cy.login();
- })
});
afterEach(() => {