Cypress · Junior · Question 33 of 75
What does cy.request() do?
- 1Clicks a link and waits for the new page
- 2Sends an HTTP request from Node, without the page
- 3Intercepts the next request the page makes
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.