cypress run doesn't return to command line
See original GitHub issueCurrent behavior:
cypress run
does not return to command line, under some circumstances, irrespective of the test results.
Desired behavior:
to return to command line, as the exit code is relevant when creating a build.
How to reproduce:
I could not replicate it, but the sequence of events in GUI is: VISIT url # containing a hash-bang XHR GET 200 XHR POST 404 XHR GET 200 # removes part of the URL hash-bang CONTAINS something XHR POST 200 XHR POST 200 # that’s when the DOM get’s updated with something XHR GET 200 NEW URL # restoring the hash-bang
It works fine in the GUI, on both Chrome and Electron, but it’s stuck in CLI with default browser (Electron).
Additional Info (images, stack traces, etc)
- Operating System: MacOS Sierra 10.12.6
- Cypress Version: 1.0.2
- Browser Version: Electron 53
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:20 (5 by maintainers)
Top Results From Across the Web
Command Line - Cypress Documentation
Run Cypress in the browser with the given name. If a filesystem path is supplied, Cypress will attempt to use the browser at...
Read more >Cypress + yarn/npm won't run a CLI command in `after:run ...
This is logging "Before run" and the calendar (not exactly together) before running the specs, and only "After run" after running the specs....
Read more >9 How To Run Cypress Tests in From Command Line - YouTube
In this video, I will show you how to run cypress using CLI commands. Cypress CLIhttps://docs. cypress.io/guides/guides/ command -lineCypress ...
Read more >Cypress Tips and Tricks - Gleb Bahmutov
If you need to run the scripts one by one from the command line, ... If the fetch call succeeds, the returned text...
Read more >Running Cypress tests in parallel in GitHub Actions without ...
It just won't let us include an env variable or do * command substitution. * * So, we can either just not use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@brian-mann @bahmutov I am also facing this issue in GitLab CI. All the tests are running fine but the control is not returning back to CLI.
Is this an issue with Cypress or I am doing something wrong?
I have attached a screenshot of this issue.
Any help or direction will be greatly appreciated. Thanks!
Use chrome instead of electron as the selected browser 😎