We are in the midst of writing e2e tests for our angular app using Cypress.io. The problem we are facing is that even though we know that tests should not depend on each other, but realistically speaking it seems impossible to achieve this in a real world app. Suppose a user needs to perform the following actions
- Signup
- Login
- Create a category
- Create a sub-category
- Crete a product in a specific sub category
Now if we have to write tests for these scenarios, we will either have to write one giant test that does all of this in one go or find a way to make them run in a sequence where perhaps each next test depends on the state left by the previous. I am curious how everyone tackles this situation because I feel it should appear very frequently in real enterprise apps.