Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299794

Drupal 10.3.x regression running JS tests using ddev

$
0
0

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.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 299794

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>