intercept | Cypress Documentation

Spy and stub network requests and responses. Tip: We recommend you read the Network Requests guide first. cy.intercept() is the successor to cy.route()