From 607ea3dac27af31e3c8571b4f170dc7fd5c3b3b1 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Wed, 23 Oct 2019 17:10:52 +0300 Subject: Cypress>=3.3.1 readFile() does not expect a relative file-path starting with / See: https://github.com/cypress-io/cypress/issues/4352#issuecomment-507963062 Issue-ID: VID-687 Change-Id: I4f3292e80d22d217d9bd33c685766efd5a8f4d8f Signed-off-by: Ittay Stern --- vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts') diff --git a/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts index 4af4a14ca..d95cfdb32 100644 --- a/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/service.popup.e2e.ts @@ -18,7 +18,7 @@ describe('Service popup', function () { }); it('a-la-carte service instantiation popup has all required fields ', function () { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { res1.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].service.vidNotions.instantiationType = 'ALaCarte'; cy.setReduxState(res1); cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true'); @@ -33,7 +33,7 @@ describe('Service popup', function () { }); it('a-la-carte service instantiation popup has Instance name as required', function () { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { res1.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].service.vidNotions.instantiationType = 'ALaCarte'; let isEcompNaming = false; res1.service.serviceHierarchy["2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"].service.serviceEcompNaming = isEcompNaming.toString(); @@ -75,7 +75,7 @@ describe('Service popup', function () { it('should display error when api return empty data', function () { cy.initCategoryParameter({}); - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res1) => { res1.service.categoryParameters.owningEntityList = []; cy.setReduxState(res1); cy.openIframe('/app/ui/#/servicePopup?serviceModelId=2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd&isCreate=true'); -- cgit 1.2.3-korg