Cypress · Junior · Question 57 of 75
Why does Cypress record screenshots on failure in cypress run?
- 1To show the state of the app when the test failed
- 2Because Cypress needs images to retry a test
- 3To compare them with the last successful run
Show the answer
Correct answer: To show the state of the app when the test failed
Explanation
Failure screenshots and optional videos help understand CI failures without rerunning.