Course lesson

Dynamically Add Queries in Cypress Intercept Function Requests

When you don’t want to stub your response or create your data before the test, you can change the request your application makes altogether. If your server recognizes different queries, you can modify your request‘s URL and add a query that will specify what...

Duration
2 min
Access
Included
Transcript
Retained from source evidence

When you don’t want to stub your response or create your data before the test, you can change the request your application makes altogether. If your server recognizes different queries, you can modify your request‘s URL and add a query that will specify what kind of data you want to get.