diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..0aad016 --- /dev/null +++ b/composer.json @@ -0,0 +1,32 @@ +{ + "name": "ddev/ddev-selenium-standalone-chrome", + "conflict": { + "drupal/core": "< 11.1" + }, + "require-dev": { + "drupal/core-dev": "^11.1", + "drupal/core-composer-scaffold": "^11.1", + "drupal/core-recommended": "^11.1", + "composer/installers": "^2" + }, + "extra": { + "installer-paths": { + "web/core": ["type:drupal-core"], + "web/libraries/{$name}": ["type:drupal-library"], + "web/modules/contrib/{$name}": ["type:drupal-module"], + "web/profiles/contrib/{$name}": ["type:drupal-profile"], + "web/themes/contrib/{$name}": ["type:drupal-theme"] + } + }, + "config": { + "allow-plugins": { + "composer/installers": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "drupal/core-composer-scaffold": true, + "drupal/core-project-message": true, + "php-http/discovery": true, + "phpstan/extension-installer": true, + "tbachert/spi": true + } + } +} diff --git a/config.selenium-standalone-chrome.yaml b/config.selenium-standalone-chrome.yaml index 61e40f9..0b994fb 100644 --- a/config.selenium-standalone-chrome.yaml +++ b/config.selenium-standalone-chrome.yaml @@ -12,7 +12,7 @@ web_environment: # Use disable-dev-shm-usage instead of setting shm_usage # https://developers.google.com/web/tools/puppeteer/troubleshooting#tips # The format of chromeOptions is defined at https://chromedriver.chromium.org/capabilities - - MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"] + - 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\"] # Nightwatch - DRUPAL_TEST_BASE_URL=http://web - DRUPAL_TEST_DB_URL=mysql://db:db@db/db @@ -26,4 +26,4 @@ web_environment: - DRUPAL_NIGHTWATCH_OUTPUT=reports/nightwatch # DTT - DTT_BASE_URL=http://web - - DTT_MINK_DRIVER_ARGS=[\"chrome\", {\"browserName\":\"chrome\",\"goog:chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"] + - 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\"] diff --git a/docker-compose.selenium-chrome.yaml b/docker-compose.selenium-chrome.yaml index 1d94216..dc63d2a 100644 --- a/docker-compose.selenium-chrome.yaml +++ b/docker-compose.selenium-chrome.yaml @@ -6,7 +6,7 @@ # services: selenium-chrome: - image: seleniarm/standalone-chromium:4.1.4-20220429 + image: seleniarm/standalone-chromium:latest container_name: ddev-${DDEV_SITENAME}-selenium-chrome expose: # The internal noVNC port, which operates over HTTP so it can be exposed