Skip to content

Instantly share code, notes, and snippets.

@diegorodrigo90
Created July 1, 2022 13:30
Show Gist options
  • Save diegorodrigo90/3b3ae6e1fdc1cf591007328ae5e7c6e1 to your computer and use it in GitHub Desktop.
Save diegorodrigo90/3b3ae6e1fdc1cf591007328ae5e7c6e1 to your computer and use it in GitHub Desktop.
drupal lando javascript functional tests
services:
appserver:
build:
- mkdir -p ${LANDO_WEBROOT}/sites/simpletest/browser_output
overrides:
environment:
MINK_DRIVER_ARGS: '["chrome", null, "http://chromedriver:4444/wd/hub"]'
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http://chromedriver:4444/wd/hub"]'
MINK_DRIVER_CLASS: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver'
SIMPLETEST_BASE_URL: 'https://d9_modules.lndo.site/'
BEHAT_PARAMS: '{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://appserver/"}, "Drupal\\DrupalExtension" : {"drush" : { "root": "/app/web" }}}}'
chromedriver:
type: compose
services:
image: robcherry/docker-chromedriver:latest
expose:
- "4444"
environment:
CHROMEDRIVER_WHITELISTED_IPS: ""
CHROMEDRIVER_URL_BASE: "/wd/hub"
security_opt:
- seccomp:unconfined
command: ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment