Skip to content
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

Chrome --headless requires xvfb #6012

Closed
ext opened this issue Dec 19, 2019 · 1 comment
Closed

Chrome --headless requires xvfb #6012

ext opened this issue Dec 19, 2019 · 1 comment

Comments

@ext
Copy link

ext commented Dec 19, 2019

Current behavior:

On a Linux CI environment I run cypress run --headless --browser chrome (and tried the workaround from #5949) but I keep getting the error:

Your system is missing the dependency: Xvfb
Install Xvfb and run Cypress again.

Desired behavior:

Since this is headless I expect it to run without xvfb as other E2E-frameworks allows me. I dont control the environment so I cannot decide what is and isn't installed and docker is not yet an option so I was very hopeful when I saw the release announcement about supporting headless for chrome.

Steps to reproduce: (app code and test code)

  1. Install cypress 3.8.0
  2. Configure to run headless chrome
  3. Run on Linux machine without X and xvfb.

Versions

Cypress 3.8.0

@flotwig
Copy link
Contributor

flotwig commented Dec 19, 2019

Electron still requires a valid display server to run, so you will still need Xvfb for the time being. #3899 will remove this dependency.

Closing since this is expected - unfortunate, but expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants