Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore network request handling in Cypress through this TestJS Summit 2021 talk. Learn to execute, spy on, and stub network requests using cy.request and cy.intercept commands for both UI and API testing. Discover best practices, use cases, and techniques for managing network interactions in browser-based tests. Dive into topics like dynamic matching, network stubbing, handling multiple requests, and approaches for real and stubbed server responses. Gain intermediate-level insights to enhance your Cypress testing skills and effectively work with network requests in your applications.
Syllabus
Intro
Network Requests + Cypress
Cypress Real World App
Use cases
How it works
Declaring a spy with cy.intercept()
Dynamic matching
Network Stubbing
Dynamic Stubbing
Handling multiple requests
Approach: Real Server Responses
Approach: Stub Server Responses
Taught by
JavaScript Conferences by GitNation