Hello, Im working on testing a react app, Im tryi...
# help
f
Hello, Im working on testing a react app, Im trying to access redux state and using that information for my next action, I am able to access the state with the code below, but It seems to be skipping my cy.get commands which are using the redux state to decide my next action.
Copy code
cy.window()
      .its('store')
      .invoke('getState')
      .then(state => {
        console.log(state, 'state');
        const georefMarkers = state.location.surveyPoints;
        const selectedMarker = georefMarkers[1];

        //the next two commands are skipped...
        cy.get('.autoCompleteMenu')
          .contains(selectedMarker.name)
          .click();

        cy.get('[data-cy=right-side-btn]').click();

        expect(state.windowsArr[0].position.surveyMarkerA)
          .to.be.a('object').........
         
      });