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>
diff --git a/vid-webpack-master/cypress/support/jsonBuilders/mocks/vid.mock.ts b/vid-webpack-master/cypress/support/jsonBuilders/mocks/vid.mock.ts
index 9698f47..052fb8a 100644
--- a/vid-webpack-master/cypress/support/jsonBuilders/mocks/vid.mock.ts
+++ b/vid-webpack-master/cypress/support/jsonBuilders/mocks/vid.mock.ts
@@ -17,7 +17,7 @@
}
function initGetToMenuInfo(response? : JSON) : void {
- cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/topMenuInfo.json').then((res) => {
+ cy.readFile('cypress/support/jsonBuilders/mocks/jsons/topMenuInfo.json').then((res) => {
cy.server()
.route({
method: 'GET',
@@ -31,7 +31,7 @@
function initCategoryParameter(response? : JSON) : void {
- cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/categoryParametres.json').then((res) => {
+ cy.readFile('cypress/support/jsonBuilders/mocks/jsons/categoryParametres.json').then((res) => {
cy.server()
.route({
method: 'GET',
@@ -43,7 +43,7 @@
}
function initFlags(response? : JSON, delay?: number, status?: number) : void {
- cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/flags.json').then((res) => {
+ cy.readFile('cypress/support/jsonBuilders/mocks/jsons/flags.json').then((res) => {
cy.server()
.route({
method: 'GET',
@@ -56,7 +56,7 @@
}
function initAuditInfoVID(response? : JSON, delay?: number, status?: number) : void {
- cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/auditInfoVid.json').then((res) => {
+ cy.readFile('cypress/support/jsonBuilders/mocks/jsons/auditInfoVid.json').then((res) => {
cy.server()
.route({
method: 'GET',
@@ -69,7 +69,7 @@
}
function initAuditInfoMSO(response? : JSON, delay?: number, status?: number) : void {
- cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/auditInfoMSO.json').then((res) => {
+ cy.readFile('cypress/support/jsonBuilders/mocks/jsons/auditInfoMSO.json').then((res) => {
cy.server()
.route({
method: 'GET',
@@ -95,7 +95,7 @@
}
function initAsyncInstantiation(response? : JSON, delay?: number, status?: number) : void {
- cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicAsyncInstantiation.json').then((res) => {
+ cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicAsyncInstantiation.json').then((res) => {
cy.server()
.route({
method: 'GET',