I am having the following scenario:
- NX with common app, app1 and app2.
- NGXS with app1-state, app2-state and a common state. So that app1 invokes action from app2 and app2 updates common state. App1 then uses selector to get common state info.
- Cypress - The e2e test tries to test app1 with the above scenario but the issue is that app2 action is not invoked from app1 (hence common state is not updated) because Cypress run only app1.
A possible solution is to move action from app2 to the common app but we actually don't want to do that because it's specific to app2.
How can we solve that:
- Run the two apps in parallel for Cypress somehow?
- Just mock the common state somehow - Cypress - programmatically manipulating Angular/NGRX app? I've found that solution but actually don't like it much as it affects actual code.