Cypress · Junior · Question 72 of 75
Why should tests clean up or create their own data?
- 1Because Cypress deletes the database after runs
- 2So the report shows how much data was used
- 3So they pass in any environment and order
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.