Cypress · Senior · Question 63 of 76
How can Cypress catch hydration or runtime errors that don't break visible UI?
- 1Take a screenshot and compare its file size
- 2Fail on uncaught exceptions and spy on
console.error - 3Check that the page title is not empty on load
Show the answer
Correct answer: Fail on uncaught exceptions and spy on console.error
Explanation
Such errors often precede visible bugs. Surfacing them in CI catches regressions early.