Cypress and React

Apply Cypress testing to the rest of our Stimulus and React pages in this lesson.

We'll cover the following...

The problem with styled components

We don’t need to do anything, in general, to test React, since the Cypress tests don’t care about the underlying framework. We do, however, have a specific problem relating to the React tools in our code. That problem is named styled components.

Styled components, which we added to our React code in the Cascading Style Sheets chapter, are lovely, but they also work by adding a ...