-
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
Cypress first run is restarting the test after cy.visit() when I am using a baseURL that is redirecting #27981
Comments
@juanzuluagag I watched the video. I believe this is happening because you have the non-secure |
@jennifer-shehane Thanks for your answer. To provide some clarity: 1. What I am using in my code to set baseURL is the following:
I do not really know why for youtube case, it is changed to https before the run. 2. Why my console is showing:
If I already have a configured baseURL?
|
Please try the latest version of Cypress. We fixed an issue with http -> https redirects that may have influenced this. Please open a new issue if you're encountering a similar issue. |
Current behavior
Video: https://drive.google.com/file/d/1HZbKUCGE2KbsxX3GvIQOIfWhD_W5e3n8/view?usp=sharing
My
cypress.config.ts
file has the following:When running cypress by
yarn cypress open
, I get in my console:Like if my baseURL was not configured.
When I try to run the test
dummyTest.cy.ts
Cypress start running, but when it reaches
cy.visit()
, starts the test again. (Only happens in the first run after opening Cypress and for baseURL that do some kind of redirection, like google in the example)Desired behavior
cy.visit()
Test code to reproduce
Already attached in actual behavior.
Cypress Version
v12.17.0
Node version
v18.17.0
Operating System
macOS 12.6.9
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: