NgRx Cypress integration #18783
Replies: 2 comments
-
Subscriptions don't unsubscribe themself. Try adding a |
Beta Was this translation helpful? Give feedback.
-
Hi, did you manage to get this solution working? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am trying to create integration tests using Cypress in my NgRx-Angular application.
So far I provided to Cypress the NgRx store using this in app.component.ts:
Accessing the store inside a test:
The problem with this approach is that I oftentimes get an error saying:
Does this has to do with the fact that inside the
then()
function of thewindow.its('store')
I am calling a new Cypress promise-like function (get
for example) ? There is no other cy command nesting inside my code.Beta Was this translation helpful? Give feedback.
All reactions