Cypress · Junior · Question 29 of 75
What does cy.intercept() let you do?
- 1Observe, wait for or stub network requests
- 2Record a video of the network traffic
- 3Block the test from making any network calls
Show the answer
Correct answer: Observe, wait for or stub network requests
Explanation
You can spy on real requests, wait for them, or return fake responses for error and edge cases.