Skip to content

#940 Show Selenium tests in noVNC again - #1064

Merged
bboro merged 2 commits into
mainfrom
940-fix-vnc-selenium
Aug 20, 2026
Merged

#940 Show Selenium tests in noVNC again#1064
bboro merged 2 commits into
mainfrom
940-fix-vnc-selenium

Conversation

@bboro

@bboro bboro commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Fixes #940

Root cause

ServerGeneralSelenium2TestBase::getDriverInstance() builds its own Chrome capabilities and hardcodes --headless, so it ignores DTT_MINK_DRIVER_ARGS. Headless Chrome never draws on the Selenium container's virtual display, so noVNC showed an empty desktop.

Regression from #912, which reinstalled the addon fresh and restored the upstream --headless defaults, undoing c69a58d.

Changes

  • Chrome runs headless only on CI, so locally the run can be watched over noVNC.
  • ci-scripts/global_config.yaml sets CI=true in web_environment. The runner sets CI, but ddev does not pass it into the containers, so getenv('CI') was never true there. This also repairs the screenshot guard in takeScreenshot().
  • New .ddev/docker-compose.selenium-chrome_screen.yaml enlarges the virtual display to 1920x1920, so the 1900x1900 window the tests ask for is not cut off. Separate file so the #ddev-generated addon files stay upgradable.
  • README no longer mentions the secret password. The container runs with VNC_NO_PASSWORD=1.

🤖 Generated with Claude Code

Chrome ran with --headless everywhere, so the Selenium container's virtual
display stayed empty and noVNC had nothing to show. Keep headless on CI only.

ddev does not pass CI into the containers, so set it in the global config that
CI copies. This also makes the existing screenshot guard work.

Enlarge the virtual display to fit the window size the tests ask for, and drop
the VNC password from the README, since the container runs with
VNC_NO_PASSWORD.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bboro

bboro commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author
image

@bboro
bboro requested a review from amitaibu July 20, 2026 14:01
@bboro

bboro commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

0.5h

@bboro
bboro requested a review from AronNovak August 19, 2026 12:32
Comment thread .ddev/docker-compose.selenium-chrome_screen.yaml Outdated
Co-authored-by: Aron Novak <AronNovak@users.noreply.github.com>
@bboro
bboro merged commit 0681c70 into main Aug 20, 2026
4 checks passed
@bboro
bboro deleted the 940-fix-vnc-selenium branch August 20, 2026 18:52
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

Successfully merging this pull request may close these issues.

Can't see Selenium tests running [4h]

3 participants