Drupal 10.3.x regression running JS tests using ddev - update lullabot/php-webdriver

Created on 3 July 2024, 2 months ago
Updated 18 July 2024, about 2 months ago

Problem/Motivation

JS tests cannot be run on the thunder project using the ddev configuration provided in https://github.com/thunder/thunder-develop - the PR https://github.com/thunder/thunder-develop/pull/76 tries to fix this but it is complicated.

In Drupal 10.3 we have partial support for W3C capabilities because we've moved to lullabot/mink-selenium2-driver and lullabot/php-webdriver - but we've not completed the conversion to core tests using w3c compliant commands so you still need to have w3c: false in your capabilities if you are using the selenium-chrome image provided by ddev. Unfortunately the move to the lullabot drivers and the changes to \WebDriver\WebDriver::session() mean that w3c: false needs to be defined twice in order for selenium to run in non-w3c mode!

Steps to reproduce

Run with MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"w3c\":false,\"goog:chromeOptions\":{\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"]
or MINK_DRIVER_ARGS_WEBDRIVER=[\"chrome\", {\"browserName\":\"chrome\",\"chromeOptions\":{\"w3c\":false,\"args\":[\"--disable-gpu\",\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\"]}}, \"http://selenium-chrome:4444/wd/hub\"]

both will fail. Note the different position of w3c: false

Proposed resolution

Provide a BC layer to copy the w3c value to the two different levels.

Note an upstream fix is also possible in https://github.com/Lullabot/php-webdriver/pull/10

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.3

Component
PHPUnit 

Last updated about 11 hours ago

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024