Cypress · Junior · Question 37 of 75
Why shouldn't one test depend on another test's result?
- 1Shared state makes the report harder to read
- 2Order changes or single runs make it fail
- 3Cypress deletes previous tests after they run
Show the answer
Correct answer: Order changes or single runs make it fail
Explanation
Each test should set up its own state, so it passes alone, in any order and on retry.