Cypress>=3.3.1 readFile() does not expect a relative file-path starting with /
[vid.git] / vid-webpack-master / cypress / support / application / application.session.actions.ts
index 84114aa..42d4d67 100644 (file)
@@ -12,7 +12,7 @@ declare namespace Cypress {
  Type to input with id some text
  *********************************/
 function setReduxState(state?: string) : void {
-  cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => {
+  cy.readFile('cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => {
     cy.window().then((win) => {
       win.sessionStorage.setItem('reduxState',  JSON.stringify(state ? state : res));
     });