-
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
Browser refreshes twice on initial load #2542
Comments
This is expected behavior. When Cypress originally loads, it's on a random localhost port. Then when you |
it worked! thanks. cypress is the best. |
I was seeing a similar issue, so set baseUrl and it appears to have helped. I'm commenting as it's also worth noting this seems to have fixed my intermittent issue with users login session not always being cleared between tests. |
I had the same issue though it wasn't a real problem in my case to have this duplicates; shifted to use baseUrl and they look much better now. Thanks for raising this one. |
Yep, I just ran into a similar issue where my |
Current behavior:
When initially opening the UI using
yarn cypress:open
, for example, the tests start running, then the page refreshes. I made a youtube video about it:https://www.youtube.com/watch?v=UzI5W9Lqm8A&feature=youtu.be
around 0:14 you can see the tests start running. Then at 0:18, for some reason, the browser (or iframe?) refreshes.
This causes the
beforeEach
hook to trigger twice, which is causing problems for me (reseeding the database twice).One the UI is open and running, everything is fine. However, due to the
beforeEach
hook triggering twice, my first test run always fails.Desired behavior:
The page should not refresh.
Steps to reproduce:
Open the Cypress interface. It seems consistent, at least on my machine.
Versions
Cypress: 3.1
MacOS: 10.13.12
The text was updated successfully, but these errors were encountered: