Cypress · Junior · Question 29 of 75

What does cy.intercept() let you do?

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.

Further reading

Problem with a question

Cypress · Junior · question 29

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