Replies: 2 comments 1 reply
-
The answer to this question is similar to your other question - cy.get('@gam.all').then(interceptions => {
for (const interception of interceptions) {
expect(interception.request.url).to.include('correlator=12345')
}
}) |
Beta Was this translation helpful? Give feedback.
1 reply
-
This solution will help you target a specific request using the index from the list returned by cy.get("@alias.all")
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When I intercept the following ads requests in my project, this would normally returns a list of identical ad requests that matches the following interceptor.
cy.intercept('GET', '**/gampad/ads?*').as('gam');
I would like to spy on each one of the matching ad requests in order to compare one of the query string parameter (correlator) is the same across all the ad requests.
Is it possible to do that in Cypress?
Beta Was this translation helpful? Give feedback.
All reactions