- Issue created by @2dareis2do
- last update
over 1 year ago 29,653 pass - 🇬🇧United Kingdom longwave UK
This was deliberately removed, because some people are not using the drupalci/chromedriver container and run tests with other versions of Chrome, so it is left up to you to install the correct version of chromedriver now for local development. See https://www.drupal.org/node/3319135 →
- 🇬🇧United Kingdom 2dareis2do
Thanks @longwave
Yes, you are right about running Nightwatch, but this is also used for running PHPUnit's Functional Javascript Tests, and the current (recommended) image for this is chrome=106.0.5249.103)
e.g.
image: drupalci/chromedriver:production
- 🇬🇧United Kingdom longwave UK
As the name implies, that container includes chromedriver (as well as Chrome); configure Mink to connect to the container on port 9515 where chromedriver runs, you don't need to run it separately.
See https://www.drupal.org/docs/automated-testing/phpunit-in-drupal/running-... → for an example based on Docker Compose.
- 🇬🇧United Kingdom 2dareis2do
Thanks @longwave.
You are right. I have updated my docker-compose.chromedriver.yaml file as per the instructions on the link you gave when running with ddev. e.g.
version: '3.6' services: chromedriver: container_name: ddev-${DDEV_SITENAME}-chromedriver image: drupalci/chromedriver:production shm_size: '1gb' ulimits: core: soft: -1 hard: -1 ports: - "4444:4444" - "9515:9515" entrypoint: - chromedriver - "--log-path=/tmp/chromedriver.log" - "--verbose" - "--allowed-ips=" - "--allowed-origins=*" labels: # These labels ensure this service is discoverable by ddev com.ddev.site-name: ${DDEV_SITENAME} com.ddev.approot: $DDEV_APPROOT com.ddev.app-url: ${DDEV_PRIMARY_URL} # This links the Chromedriver service to the web service defined # in the main docker-compose.yml, allowing applications running # in the web service to access the driver at `chromedriver`. web: links: - chromedriver:$DDEV_HOSTNAME
Also removed chromedriver from core/package.json and re-ran yarn.
Tests also appear to be running a bit quicker now.
- Status changed to Closed: works as designed
over 1 year ago 11:20am 11 October 2023