Cypress · Junior · Question 72 of 75

Why should tests clean up or create their own data?

Show the answer

Correct answer: So they pass in any environment and order

Explanation

Seeding via API or cy.task and using unique values keeps tests independent and repeatable.

Further reading

Problem with a question

Cypress · Junior · question 72

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