Search⌘ K
AI Features

Seeing the Tests Run

Explore how to run Rails system tests inside Docker using Selenium with a VNC server to view tests in action or run them headlessly for speed. Understand configuring Capybara drivers and adapting RSpec to run JavaScript-enabled system specs efficiently in a Docker setup.

Running VNC server

The selenium/standalone-chrome-debug image includes a running VNC server. This allows us to connect and actually view tests as they run in the browser. In order to see the desktop of our container, we will need a VNC client to connect with. Our platform presently doesn’t support one, but if you were running the Docker environment on your own machine (with a VNC client installed), you could start a VNC client by typing vnc://localhost:5900 in your web browser. This will open a VNC client ...