-
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 shows error in Windows when passing args containing a url in 3.5.0 #5466
cypress shows error in Windows when passing args containing a url in 3.5.0 #5466
Comments
We also have this issue. Passing any arguments (--config baseUrl=https://localhost:56949) is not possible any more. Cypress will immediately terminate. |
I tested and on Linux it works. It seems that cypress.cmd is broken. |
As a workaround you can use environment variables to set the cypress configs. https://docs.cypress.io/guides/guides/environment-variables.html#Option-4-env |
Are you all using the |
Can you also confirm what arguments you are seeing, I know someone say 'any arguments', but all of the examples have The reason I ask is because the |
I'm using it on a react project: It works with Cypress 3.4.1 but not with 3.5. it doesnt show any error message just terminate I use it on Windows |
@jennifer-shehane Example of how we are using cypress:
|
We're using it plain installed via npm from command line and Gradle. When passing either |
Hey everyone, Could you run Cypress in debug mode mode and print the entire set of logs here? Please include the error you are seeing also. |
Output from running cypress with
|
Output from running cypress with set DEBUG=cypress:*:
|
Same problem here. As a workaround I could use |
I have the same problem too on both 3.5 and 3.6 versions. |
I think this may be occurring due to a change in Electron (which we upgraded) where they strip arguments after an argument containing a url. Seems localized to Windows though. electron/electron#13039
|
Moving the
Passing
|
That Electron PR allows for urls when the args are prefaced with extra npx cypress open -- --config baseUrl=https://google.com Sadly, Cypress doesn't parse arguments in this format. I'm not sure how args in this format are passed to the Electron app, but it may be the only fix Cypress could do downstream. EDIT: in fact, looking at DEBUG, I think all that cypress needs to do is prepend |
Can confirm its windows only, exactly the same setup works just fine in linux, but fails with this issue on windows |
@jennifer-shehane can we please get an update as to when this will be fixed |
Another workaround is to launch cypress from the node module API. You pass the config as a js object and this still works fine on Windows. |
Same issue with vue-service-cli command test:e2e. It runs the following commands |
Confirming v3.7.0 on Windows is crashing
Even passing an url inside Working: Hmm, when I comment out
Interesting - it seems by adding "dummy" '--' to the arguments when spawning the child process I can make the Electron work - just like this comment suggests #5466 (comment)
|
Added a failing test to test project https://github.com/cypress-io/cypress-example-todomvc/tree/3.7.1 - and updated AppVeyor to confirm it fails |
@bahmutov no need to reverse-engineer/guess what's going on. It's a known feature of new Electron versions, as @jennifer-shehane linked. electron/electron#13039 (fixing electron/electron#13226 (comment)) |
The code for this is done in cypress-io/cypress#5853, but has yet to be released. |
Thanks for getting this fixed! Do we know approximately when this will be released? |
Any chance this will release this week? I have some E2E test pipelines in our deploy process that I'd love to get updated waiting on this fix. If there's anything I can do to help, I'd be happy to. |
Oh, yes. It would be nice. We desperately need this fix asap. Impossible for us to upgrade from 3.4.1 to newer versions with this bug. Have been trying for weeks. |
Yep, we've got a project blocked only by this issue as well. Any information as to when this will be fixed would be appreciated. |
We also are unable to upgrade from 3.4.1 |
Released in |
Current behavior:
After updating to Cypress 3.5.0 I'm not able to open the Cypress GUI nor to run cypress run anymore. I'm using the Vue-Plugin "cli-plugin-e2e-cypress". I receiving the following error-message:
Desired behavior:
I should be able to run my test with "cypress run" or open the GUI with "cypress open"
Steps to reproduce: (app code and test code)
Versions
The text was updated successfully, but these errors were encountered: