-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cy.visit() on SPA redirected #3697
Comments
I am able to recreate this. I notice that a location popup comes up directly before it go to the 'Whoops' page - I don't think that is related, but there is an issue open to disable the dialog here: #2671 I notice you logged a 302 redirect. Can you share the code of how you are performing the actual redirect? It's possible that you're redirecting from |
Thanks @jennifer-shehane. I don't think the geolocation request is related as I've seen the same behavior on other applications without that feature. I'm working to get more information regarding the redirect now. |
Hey @jennifer-shehane I have the same problem, if you want to see it to get more information I can show you. |
@jennifer-shehane, I heard back from folks that would know the answer to the redirect question. There is nothing on the hosting end that would cause this, and no rules existed that would present this behavior without it also being visible when examining it manually in a browser. I tested my application locally, and Cypress works as expected there though. |
@jennifer-shehane so don't have a solution for this problem? I really want to make some tests with cypress. |
@suellenz You are welcome to forward any information directly to support@cypress.io in reference to this bug |
@jennifer-shehane Thank you so much, I'm going to try again and make more some tests and if I still have with same problem I'll forward the bug to the support just like you suggested me. |
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen. |
Hi there, I have the same issue of "Whoops, there is no test to run." When I run actions.spec.js with a modified visit URL - https://www.portail-autoentrepreneur.fr I get the error message. It does work with other websites though. This website is made with VUE SSR. Anyone encountered this issue of no tests to run? thanks |
@electronrecord Typically we've seen this issue when clicking on links that have |
Current behavior:
Using simply a
cy.visit()
to browse to a URL that happens to be a single page application, the page will render in the runner before quickly being redirected to a base url of__
and the runner losing connection and reporting "Whoops, there is no test to run." In normal Chrome browser, a redirect is not observed.Desired behavior:
URL should not change, or if a redirect is common for this tool to function, it should be followed and tests continue to run.
Steps to reproduce: (app code and test code)
Terminal will report:
Versions
Cypress: 3.1.5
Windows 10
The text was updated successfully, but these errors were encountered: