Cypress · Middle · Question 73 of 77

When does it make sense to use cy.request for a whole test instead of the UI?

Show the answer

Correct answer: When testing API behaviour, not the user interface

Explanation

Cypress can test APIs directly. For larger API suites, a dedicated API testing tool may fit better.

Further reading

Problem with a question

Cypress · Middle · question 73

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