1 declare namespace Cypress {
3 setReduxState : typeof setReduxState;
7 /**********************************
8 Type to input with id some text
9 *********************************/
10 function setReduxState(state?: string) : void {
11 cy.readFile('/cypress/support/jsonBuilders/mocks/jsons/basicRedux.json').then((res) => {
12 cy.window().then((win) => {
13 win.sessionStorage.setItem('reduxState', JSON.stringify(state ? state : res));
20 Cypress.Commands.add('setReduxState', setReduxState);