question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running cypress in headless mode should not use xvfb

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
cypress-bot[bot]commented, Jul 9, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found