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 --- .../cypress/support/jsonBuilders/mocks/aai.mock.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'vid-webpack-master/cypress/support/jsonBuilders/mocks/aai.mock.ts') diff --git a/vid-webpack-master/cypress/support/jsonBuilders/mocks/aai.mock.ts b/vid-webpack-master/cypress/support/jsonBuilders/mocks/aai.mock.ts index acb58c261..669db055c 100644 --- a/vid-webpack-master/cypress/support/jsonBuilders/mocks/aai.mock.ts +++ b/vid-webpack-master/cypress/support/jsonBuilders/mocks/aai.mock.ts @@ -11,7 +11,7 @@ declare namespace Cypress { } function initGetSubscribers(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/subscribers.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/subscribers.json').then((res) => { cy.server() .route({ method: 'GET', @@ -23,7 +23,7 @@ function initGetSubscribers(response? : JSON) : void { } function initAaiGetFullSubscribers(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/subscribers.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/subscribers.json').then((res) => { cy.server() .route({ method: 'GET', @@ -35,7 +35,7 @@ function initAaiGetFullSubscribers(response? : JSON) : void { } function initGetAAISubDetails(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/aaiSubDetails.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/aaiSubDetails.json').then((res) => { cy.server() .route({ method: 'GET', @@ -47,7 +47,7 @@ function initGetAAISubDetails(response? : JSON) : void { } function initAlaCarteService(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/a-la-carteService.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/a-la-carteService.json').then((res) => { cy.server() .route({ method: 'GET', @@ -63,7 +63,7 @@ function initAlaCarteService(response? : JSON) : void { function initTenants(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/tenants.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/tenants.json').then((res) => { cy.server() .route({ method: 'GET', @@ -75,7 +75,7 @@ function initTenants(response? : JSON) : void { } function initAAIServices(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/aaiServices.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/aaiServices.json').then((res) => { cy.server() .route({ method: 'GET', @@ -87,7 +87,7 @@ function initAAIServices(response? : JSON) : void { } function initZones(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/zones.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/zones.json').then((res) => { cy.server() .route({ method: 'GET', @@ -124,7 +124,7 @@ function initActiveNetworks(response? : JSON) : void { } function initActiveVPNs(response? : JSON) : void { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/aaiActiveVPNs.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/aaiActiveVPNs.json').then((res) => { cy.server() .route({ method: 'GET', -- cgit 1.2.3-korg