diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-10-23 17:10:52 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-10-24 08:25:01 +0000 |
commit | 607ea3dac27af31e3c8571b4f170dc7fd5c3b3b1 (patch) | |
tree | 357112f71483376c0965a87a0a4e93cb1facca98 /vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts | |
parent | d5ee5305be7f747aaddd3493485d6f029f72817b (diff) |
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 <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts')
-rw-r--r-- | vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts index 3e90e2bb3..790fcfc67 100644 --- a/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts @@ -33,7 +33,7 @@ describe('A la carte', function () { it(`service name should be mandatory : serviceEcompNaming = true`, ()=> { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicService.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicService.json').then((res) => { jsonBuilderAAIService.basicJson(res, Cypress.config('baseUrl') + '/rest/models/services/' + SERVICE_ID, 200, @@ -51,7 +51,7 @@ describe('A la carte', function () { const rollbackOnFailure : string = "true"; const projectName : string = "WATKINS"; const instanceName : string = "serviceInstanceName"; - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setTestApiParamToGR(); res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.vidNotions.instantiationType = 'ALaCarte'; @@ -94,7 +94,7 @@ describe('A la carte', function () { it(`VNF a-la-carte`, ()=> { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setTestApiParamToGR(); res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.vidNotions.instantiationType = 'ALaCarte'; res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.inputs = null; @@ -145,7 +145,7 @@ describe('A la carte', function () { }); it(`Network a-la-carte`, ()=> { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setTestApiParamToGR(); res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.vidNotions.instantiationType = 'ALaCarte'; res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.inputs = null; @@ -199,7 +199,7 @@ describe('A la carte', function () { if (new Date() < timeBomb) { return; } - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/emptyServiceRedux.json').then((res) => { cy.setTestApiParamToGR(); res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.vidNotions.instantiationType = 'ALaCarte'; res.service.serviceHierarchy['2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd'].service.inputs = null; |