Cypress · Junior · Question 33 of 75

What does cy.request() do?

Show the answer

Correct answer: Sends an HTTP request from Node, without the page

Explanation

It's great for setting up data or logging in via API, and it isn't subject to browser CORS rules.

Further reading

Problem with a question

Cypress · Junior · question 33

Test yourself

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

Take this quiz