Cypress · Junior · Question 37 of 75

Why shouldn't one test depend on another test's result?

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.

Further reading

Problem with a question

Cypress · Junior · question 37

Test yourself

Take the Cypress · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz