Cypress · Senior · Question 13 of 76
Why can heavy network stubbing make a Cypress suite give false confidence?
- 1Stubbed tests are always slower than tests on real servers
- 2Cypress cannot stub POST requests with any reliability
- 3Stubs can drift from the real API while tests stay green
Show the answer
Correct answer: Stubs can drift from the real API while tests stay green
Explanation
Pair stubbed UI tests with some tests against a real backend, or validate fixtures against the API contract.