AI Features

Fixtures and Integration

Learn the purpose of the fixture and integration folders, and how they can help us write more stable and organized tests.

When creating a test suite for a web application, we have to consider network connection fails. Any function that relies on fetching data from a server or requires sending data to the server has side effects. And side effects can easily break tests.

Our network request can come back either successfully or with a failure, or anything in between. There are just too many status codes to keep in mind. To work around this, Cypress introduces a folder called “fixtures”.


What are fixtures?

Fixtures are pieces of static data that can be used inside our test ...

Ask