Cypress>=3.3.1 readFile() does not expect a relative file-path starting with / 37/97537/3
authorIttay Stern <ittay.stern@att.com>
Thu, 24 Oct 2019 11:05:12 +0000 (14:05 +0300)
committerIttay Stern <ittay.stern@att.com>
Tue, 29 Oct 2019 13:24:22 +0000 (13:24 +0000)
See:
https://github.com/cypress-io/cypress/issues/4352#issuecomment-507963062

Issue-ID: VID-687

Change-Id: I5f5f34be85ec2d3401cdf01f4259c2b5d02da37c
Signed-off-by: Ittay Stern <ittay.stern@att.com>
vid-webpack-master/cypress/integration/iFrames/changeManagement.e2e.ts

index 219ffad..a48ed4a 100644 (file)
@@ -23,7 +23,7 @@ describe('Change management AKA VNF changes', function () {
         "aai-sub-details")
     });
 
-    cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/flags.json').then(() => {
+    cy.readFile('cypress/support/jsonBuilders/mocks/jsons/flags.json').then(() => {
       cy.server()
         .route({
           method: 'GET',
@@ -38,7 +38,7 @@ describe('Change management AKA VNF changes', function () {
         }).as('initFlags');
     });
 
-    cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/get_vnf_data.json').then((res) => {
+    cy.readFile('cypress/support/jsonBuilders/mocks/jsons/get_vnf_data.json').then((res) => {
       jsonBuilderVnfData.basicJson(
         res,
         aaiGetVNFDataUrl + '**',