UI Testing Cypress installation failed

unable to install or open cypress in v14

Error 1:
DevTools listening on ws://

Error 2:
[114891:0622/080746.489547:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

they mention in Github

this link mention need to upgrade cypress to Cypress v12.12.0, but mine is Cypress: 12.15.0, still having the same issue.

Any ideas?

Check if this helps

Try the bench commands instead of cypress cli. Execute bench --help for more.

still getting the same output…

You can try --headless tests?

I think you’ll need additional Debian dependencies and Google chrome to be installed.

sudo apt-get update && sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
sudo apt install -y /tmp/chrome.deb && rm /tmp/chrome.deb

Also there’s no way you can open your regular browser from cypress in devcontainer. Add following to your devcontainer docker compose and rebuild containers

  # For testing cypress in devcontainers
  x11-bridge: # https://github.com/JAremko/docker-x11-bridge
    image: jare/x11-bridge
      - "/tmp/.X11-unix:/tmp/.X11-unix:rw"
      - "8080:8080"
    restart: always
      MODE: tcp
      XPRA_HTML: "yes"
      DISPLAY: ":14"
      XPRA_TCP_PORT: "8080"
      XPRA_PASSWORD: admin # This password can be anything you want.

    image: frappe/bench:latest
    command: ["tail", "-f", "/dev/null"]
      - SHELL=/bin/bash
      # For cypress testing
      - DISPLAY=:14
      - ..:/workspace:cached
      - ${HOME}/.ssh:/home/frappe/.ssh
    working_dir: /workspace/development
      - 8000-8005:8000-8005
      - 9000-9005:9000-9005
      - x11-bridge:rw
      - x11-bridge

You’ll be able to access X on browser (localhost:8080) where your chrome from devcontainer will open.

I wanted to use cypress testing for my custom frappe app within devcontainers.
I have a mac and I installed xquartz and obtained the DISPLAY ip after running install_x11_deps.sh in my local environment.
I viewed the development.md file and docker-compose ui-tester service. But I am not able to understand what steps needs to be taken to enable this service.

How is the ui-tester service getting connected to the frappe-bench service?

I also referred gameplan repository to get some insights.
After installing cypress yarn package within the frontend service of the custom frappe app, when I try to run cypress run or cypress open, I am getting this error:

It looks like this is your first time using Cypress: 13.7.0

Your system is missing the dependency: Xvfb

Install Xvfb and run Cypress again.

Read our documentation on dependencies for more information:


If you are using Docker, we provide containers with all required dependencies installed.


Error: spawn Xvfb ENOENT


Platform: linux-arm64 (Debian - 12)
Cypress Version: 13.7.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Can you help me out here?