Assert on XHR Requests in Cypress

Brett Cassette
InstructorBrett Cassette

Share this video with your friends

Send Tweet

In this lesson, we'll learn to test the seam between frontend and backend -- our XHR requests. Using cy.route as if we were mocking our backend requests, we can instead spy on the request, and intercept its data to run tests against.