Cypress · Junior · Question 62 of 75
What should a Cypress test check after submitting a form?
- 1The visible result and, if needed, the request sent
- 2Only that the submit button was clicked
- 3That no JavaScript errors appeared in the console
Show the answer
Correct answer: The visible result and, if needed, the request sent
Explanation
Asserting the UI outcome and the intercepted request body catches both display and data bugs.