Cypress · Middle · Question 7 of 77

How do you check the body a form sends to the API?

Show the answer

Correct answer: Intercept it and assert interception.request.body

Explanation

This catches frontend bugs like wrong field names or types that a stubbed backend would accept silently.

Further reading

Problem with a question

Cypress · Middle · question 7

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz