-
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
Prevent test reload when not setting baseUrl #2602
Comments
You can prevent the reload by setting a |
Hi @jennifer-shehane thanks for the prompt reply. I actually almost posted this at the bottom of #1541 stating that I have to leave the baseUrl config prop blank due to it not following proxy settings on my CI box. Thus using a env variable serving the same purpose(ish). |
It looks like this also happens when |
@rbayliss this is expected behavior so Cypress can exist within the browser's security model, see explanation here: https://docs.cypress.io/guides/references/best-practices.html#Setting-a-global-baseUrl
@rsmets Cypress has had proxy support for about a year now, might be worth trying Closing this issue as wontfix |
Current behavior:
Upon first opening a test using the test runner some test are run then the browser reloads and all but the first test is reran which is what the dashboard reads as the result. This behavior is only noticeable when the first test group contains a network request. This stutter step, so to speak, has had averse effects on tests as one can imagine.
Desired behavior:
Upon first opening the tests are run once with no reload / restart.
Steps to reproduce:
Below is example code to reproduce. Upon clicking on the bug example file in the test runner please quickly open the console with preserve log checked to view the characteristic. Note 'randomString2' and 'in request response' is never logged. To reproduce again one must close the browser, stop the test, and restart the test forcing the browser to open for first time.
Versions
cypress v3.1.0
chrome canary 71
The text was updated successfully, but these errors were encountered: