Cypress · Junior · Question 69 of 75
What does Cypress do with an uncaught exception from the app?
- 1Ignores it and continues
- 2Retries the whole spec
- 3Fails the test by default
Show the answer
Correct answer: Fails the test by default
Explanation
App errors usually mean bugs. You can handle known ones with Cypress.on('uncaught:exception'), but do it narrowly.