-
-
Notifications
You must be signed in to change notification settings - Fork 23
Continue #58 - use official images (seleniarm) #65
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
Conversation
ol0lll
commented
Jul 3, 2025
- Update docker-compose.selenium-chrome.yaml
- Bump Drupal core used in testing
- Remove -v option to phpunit. Add a composer.json
- Remove unwanted composer installer cruft
- Use seleniarm
- Use current mink args, see https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.main.yml\?ref_type\=heads\#L46
Switch to official image
Rebased to resolve conflicts. There are now artifacts (for the nightwatch and others) in the tests, so it's easier to see what went wrong: https://github.com/ddev/ddev-selenium-standalone-chrome/actions/runs/16074002275?pr=65 |
From what I see, this is the only PR that does not hang, because it fails much faster 🙂 |
Thanks for the tip. I moved the test suite to Drupal 11 and merged that into this PR. We are still seeing errors unfortunately. FYI, the composer.json added here is not needed. The test suite installs Drupal and dependencies. |
The nightwatch errors of "An error occurred while creating a new Selenium Server session ..." may be due to missing / incorrect env variable(s). This change in - DRUPAL_TEST_WEBDRIVER_HOSTNAME=selenium-chrome
- DRUPAL_TEST_WEBDRIVER_PORT=4444
- DRUPAL_TEST_WEBDRIVER_PATH_PREFIX=/wd/hub
- - DRUPAL_TEST_WEBDRIVER_CHROME_ARGS=--disable-gpu --headless --no-sandbox --disable-dev-shm-usage
+ - DRUPAL_TEST_WEBDRIVER_CHROME_ARGS='--disable-dev-shm-usage --disable-gpu --headless --dns-prefetch-disable'
+ - DRUPAL_TEST_WEBDRIVER_W3C=true
- DRUPAL_TEST_CHROMEDRIVER_AUTOSTART=false
- DRUPAL_NIGHTWATCH_SEARCH_DIRECTORY=../
- DRUPAL_NIGHTWATCH_IGNORE_DIRECTORIES=node_modules,vendor,.*,sites/*/files,sites/*/private,sites/simpletest I arrived at this from seeing that Drupal's Also works with |
FWIW, the image |
See #49 |