I'm wrote wait on 3 different requests on my automated test, but each time I run the test, the wait functions on one of the requests.
cy
.intercept('POST', '**/api/Availability') //the API is different for each wait
.as('availabilecheck')
cy
.wait('@availabilecheck')
.its('response.statusCode')
.should('eq', 200)
I wrote the above code for 3 different…
Top comments (0)