Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Become a Member
1×
Become a member
to unlock all features
Autoplay

    Assert on Your Redux Store with Cypress

    cypressCypress
    ^3.1.5

    Cypress doesn't provide out-of-the-box ability to make assertions on our frontend stores, so let's expose the store to the tests, and assert on it. We'll use our knowledge of Cypress's asynchronous programming style to access properties and functions on the store using cy.its and cy.invoke.

    Recommended Homework:

    • Consider why it's valuable to test against your frontend store when you can test against the UI