Skip to content

Commit 328ed4f

Browse files
authored
Update ddev selenium (#89)
1 parent 6cfc075 commit 328ed4f

5 files changed

Lines changed: 28 additions & 10 deletions

File tree

.ddev/.env

Whitespace-only changes.
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
name: ddev-selenium-standalone-chrome
22
repository: ddev/ddev-selenium-standalone-chrome
3-
version: 1.0.5
4-
install_date: "2024-07-10T20:32:17+02:00"
3+
version: 2.0.0-rc2
4+
install_date: "2025-08-20T11:25:00+02:00"
55
project_files:
66
- docker-compose.selenium-chrome.yaml
77
- config.selenium-standalone-chrome.yaml
88
global_files: []
9-
removal_actions: []
9+
removal_actions:
10+
- |
11+
#ddev-nodisplay
12+
#ddev-description:Remove docker-compose.selenium-chrome_extras.yaml file
13+
if [ -f docker-compose.selenium-chrome_extras.yaml ]; then
14+
if grep -q '#ddev-generated' docker-compose.selenium-chrome_extras.yaml; then
15+
rm -f docker-compose.selenium-chrome_extras.yaml
16+
else
17+
echo "Unwilling to remove '$DDEV_APPROOT/.ddev/docker-compose.selenium-chrome_extras.yaml' because it does not have #ddev-generated in it; you can manually delete it if it is safe to delete."
18+
fi
19+
fi

.ddev/config.selenium-standalone-chrome.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ web_environment:
1212
# Use disable-dev-shm-usage instead of setting shm_usage
1313
# https://developers.google.com/web/tools/puppeteer/troubleshooting#tips
1414
# The format of chromeOptions is defined at https://chromedriver.chromium.org/capabilities
15-
- MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\",{\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":true,\"args\":[\"--no-sandbox\",\"--disable-dev-shm-usage\",\"--ignore-certificate-errors\",\"--allow-insecure-localhost\",\"--dns-prefetch-disable\"]}},\"http://selenium-chrome:4444\"]
15+
- MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":true,\"args\":[\"--disable-dev-shm-usage\",\"--disable-gpu\",\"--dns-prefetch-disable\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
1616
# Nightwatch
1717
- DRUPAL_TEST_BASE_URL=http://web
1818
- DRUPAL_TEST_DB_URL=mysql://db:db@db/db
1919
- DRUPAL_TEST_WEBDRIVER_HOSTNAME=selenium-chrome
2020
- DRUPAL_TEST_WEBDRIVER_PORT=4444
21-
- DRUPAL_TEST_WEBDRIVER_CHROME_ARGS=--disable-gpu --no-sandbox --disable-dev-shm-usage
21+
- DRUPAL_TEST_WEBDRIVER_PATH_PREFIX=/wd/hub
22+
- DRUPAL_TEST_WEBDRIVER_W3C=true
23+
# --window-size=1920,1080 is needed to fix random timeouts in tests. See: https://community.latenode.com/t/selenium-webdriver-timeout-issue-when-running-in-headless-mode-with-c/21952/4
24+
- DRUPAL_TEST_WEBDRIVER_CHROME_ARGS=--disable-dev-shm-usage --disable-gpu --headless --dns-prefetch-disable --window-size=1920,1080
2225
- DRUPAL_TEST_CHROMEDRIVER_AUTOSTART=false
2326
- DRUPAL_NIGHTWATCH_SEARCH_DIRECTORY=../
2427
- DRUPAL_NIGHTWATCH_IGNORE_DIRECTORIES=node_modules,vendor,.*,sites/*/files,sites/*/private,sites/simpletest
2528
- DRUPAL_NIGHTWATCH_OUTPUT=reports/nightwatch
2629
# DTT
2730
- DTT_BASE_URL=http://web
28-
- DTT_MINK_DRIVER_ARGS=[\"chrome\",{\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":true,\"args\":[\"--no-sandbox\",\"--disable-dev-shm-usage\",\"--ignore-certificate-errors\",\"--allow-insecure-localhost\",\"--dns-prefetch-disable\"]}},\"http://selenium-chrome:4444\"]
31+
- DTT_MINK_DRIVER_ARGS=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":true,\"args\":[\"--disable-dev-shm-usage\",\"--disable-gpu\",\"--headless\",\"--dns-prefetch-disable\"]}}, \"http://selenium-chrome:4444/wd/hub\"]

.ddev/docker-compose.selenium-chrome.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
#
55
# This file comes from https://github.com/ddev/ddev-selenium-standalone-chrome
66
#
7-
version: '3.6'
87
services:
98
selenium-chrome:
10-
image: seleniarm/standalone-chromium:latest
9+
image: selenium/standalone-chromium:138.0
1110
container_name: ddev-${DDEV_SITENAME}-selenium-chrome
1211
expose:
1312
# The internal noVNC port, which operates over HTTP so it can be exposed
@@ -17,8 +16,7 @@ services:
1716
- VIRTUAL_HOST=$DDEV_HOSTNAME
1817
- HTTPS_EXPOSE=7900:7900
1918
- HTTP_EXPOSE=7910:7900
20-
external_links:
21-
- ddev-router:${DDEV_SITENAME}.${DDEV_TLD}
19+
- VNC_NO_PASSWORD=1
2220
# To enable VNC access for traditional VNC clients like macOS "Screen Sharing",
2321
# uncomment the following two lines.
2422
#ports:
@@ -27,6 +25,8 @@ services:
2725
com.ddev.site-name: ${DDEV_SITENAME}
2826
com.ddev.approot: $DDEV_APPROOT
2927
volumes:
28+
# To enable file uploads in E2E tests.
29+
- ${DDEV_APPROOT}:/var/www/html:r
3030
- ".:/mnt/ddev_config"
3131

3232
web:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#ddev-generated
2+
services:
3+
selenium-chrome:
4+
external_links:
5+
- "ddev-router:${DDEV_PROJECT}.${DDEV_TLD}"

0 commit comments

Comments
 (0)