Test runner not listing/finding waited call only in certain environment #15159
Unanswered
mellis481
asked this question in
Questions and Help
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Throughout my tests, I will define a route with an alias , visit a page, and wait for the aliased route to resolve. Here is an example:
This has worked fine when run locally and against deployed environments. In the Cypress test running, I see the following:
As you can see, my aliased route (
systemSettings
) is successfully waited on and you can see a list of XHR calls made while waiting (including the one I'm waiting on).I recently attempted to point my Cypress tests to a different
baseUrl
. FWIW this one is an IP address + port. When I run the same tests against this environment:systemSettings
) is never found (even though I can see it called in my browser's Network tab)Here is a screenshot:

I'm using Cypress 6.2.0. I tried switching my
cy.route()
tocy.intercept()
and that, in fact, corrects this situation, but results in a number of other undesirable things happened so I do not want to switch conventions at this time.What could be causing this?
Beta Was this translation helpful? Give feedback.
All reactions