Running cypress in headless mode should not use xvfb
See original GitHub issueCurrent behavior
Currently, when I use cypress in headless mode via cypress run
, xvfb is still invoked. Consequently, sometimes this can make my cypress tests error out due to an error.
For example:
Cypress: Fatal IO error 11 (Resource temporarily unavailable) on X server :105.
Desired behavior
When running in headless mode, there is no need to spawn xvfb at all. This should only be done when using cypress run
to run a browser in headed mode.
Versions
All versions of cypress up to 7.3.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Introduction | Cypress Documentation
Chromium based browsers and Firefox can spawn without Xvfb when run via the --headless flag. If you're testing against either of those browsers...
Read more >Cypress/GitLab CI/CD integration - Stack Overflow
This seems to be an issue: [FAILED] Your system is missing the dependency: Xvfb Why would I need Xvfb for running headless test...
Read more >A Quick Overview Of Running Cypress Tests in Headless Mode
This test automation recipe will show you how to run your Cypress tests in headless mode, including the default Electron browser, Chrome, ...
Read more >Running Cypress Tests in Headless Mode - Applitools
Learn how to run Cypress tests in headless mode. One of the important things to consider when writing tests is being able to...
Read more >38 How To Run Your Tests Headlessly with Xvfb
If you want to run your tests headlessly on a Continuous Integration (CI) server you'll quickly realize that you can't with an out-of-the-box...
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 FreeTop 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
Top GitHub Comments
@mrmeku see https://github.com/cypress-io/cypress/commit/cf689dd6093b92cd950e9ec77edd84977f90260f#commitcomment-53273920
The code for this is done in cypress-io/cypress#16537, but has yet to be released. We’ll update this issue and reference the changelog when it’s released.