cy.intercept catching urls its not supposed to #14900
Unanswered
CinkadeusBG
asked this question in
Questions and Help
Replies: 1 comment
-
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
We're upgrading from v5 to v6 and replacing our cy.route instances in all our test... The problem is the matching is not working the same as it did with cy.route and its catching URLs we don't intend it to.. Its making conversions of the following code difficult.
cy.intercept("POST", "/Api/Companies/1/Surety", {}).as("CreateSuretyCompany");
cy.intercept("POST", "/Api/Companies/1/Surety/*/Map", {}).as("MapSuretyCompany");
Whenever the /Map url is called, the intercept above it is the one being fired. What do we need to do to have the intercept work more like cy.route did in regards to url matching?
Beta Was this translation helpful? Give feedback.
All reactions