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/integration/shared/error.message.popup.e2e.ts | 2 +- vid-webpack-master/cypress/integration/shared/spinner.e2e.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'vid-webpack-master/cypress/integration/shared') diff --git a/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts b/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts index 69021132c..55f90cc69 100644 --- a/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts +++ b/vid-webpack-master/cypress/integration/shared/error.message.popup.e2e.ts @@ -24,7 +24,7 @@ describe('Error message popup', function () { it('error should display on api error', function () { // adding call with delay of 2000 sec - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json').then((res) => { jsonBuilderInstantiationBuilder.basicJson(res, Cypress.config('baseUrl') + "/asyncInstantiation**", 500,0, "error 500 asyncInstantiation"); cy.openIframe('app/ui/#/instantiationStatus'); diff --git a/vid-webpack-master/cypress/integration/shared/spinner.e2e.ts b/vid-webpack-master/cypress/integration/shared/spinner.e2e.ts index 438e7bc3a..cd14a1247 100644 --- a/vid-webpack-master/cypress/integration/shared/spinner.e2e.ts +++ b/vid-webpack-master/cypress/integration/shared/spinner.e2e.ts @@ -25,7 +25,7 @@ describe('Spinner', function () { const timeBomb:Date = new Date(2018,6,10,0,0,0); //month 6 is July if (new Date(Date.now()) > timeBomb) { - cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json').then((res) => { + cy.readFile('cypress/support/jsonBuilders/mocks/jsons/asyncInstantiation.json').then((res) => { jsonBuilderInstantiationBuilder.basicJson(res, Cypress.config('baseUrl') + "/asyncInstantiation**", -- cgit 1.2.3-korg