ddev-drupal-core-dev icon indicating copy to clipboard operation
ddev-drupal-core-dev copied to clipboard

FunctionalJavascript tests broken - chrome driver issue !?!?

Open vasike opened this issue 11 months ago • 3 comments

With the latest mac OS / docker / drupal / ddev and this add-on

I'm getting this kind of errors.

# ddev phpunit core/modules/system/tests/src/FunctionalJavascript/FrameworkTest.php

Clearing old webdriver sessions
PHPUnit 10.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.19
Configuration: /var/www/html/core/phpunit.xml

There were 3 failures:

1) Drupal\Tests\system\FunctionalJavascript\FrameworkTest::testLazyLoad
Behat\Mink\Exception\DriverException: Could not open connection: Could not start a new session. No nodes support the capabilities in the request 
Host info: host: '9c575ab42524', ip: '172.23.0.4'
Build info: version: '4.30.0', revision: '509c7f1'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '6.10.14-linuxkit', java.version: '21.0.6'
Driver info: driver.version: unknown

/var/www/html/vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php:364
/var/www/html/vendor/behat/mink/src/Session.php:77
/var/www/html/vendor/behat/mink/src/Session.php:172
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:266
/var/www/html/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:89
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:236
/var/www/html/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:60
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:358

Caused by
WebDriver\Exception\SessionNotCreated: Could not start a new session. No nodes support the capabilities in the request 
Host info: host: '9c575ab42524', ip: '172.23.0.4'
Build info: version: '4.30.0', revision: '509c7f1'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '6.10.14-linuxkit', java.version: '21.0.6'
Driver info: driver.version: unknown

/var/www/html/vendor/lullabot/php-webdriver/lib/WebDriver/Exception.php:198
/var/www/html/vendor/lullabot/php-webdriver/lib/WebDriver/AbstractWebDriver.php:227
/var/www/html/vendor/lullabot/php-webdriver/lib/WebDriver/WebDriver.php:95
/var/www/html/vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php:362
/var/www/html/vendor/behat/mink/src/Session.php:77
/var/www/html/vendor/behat/mink/src/Session.php:172
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:266
/var/www/html/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:89
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:236
/var/www/html/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:60
/var/www/html/core/tests/Drupal/Tests/BrowserTestBase.php:358

vasike avatar May 07 '25 13:05 vasike

If you provide the file output by ddev debug test we'll know a lot more about your environment and things like what "latest" means. Please make sure you've done simple things like ddev poweroff and perhaps rebooting your computer.

rfay avatar May 07 '25 13:05 rfay

If you provide the file output by ddev debug test we'll know a lot more about your environment and things like what "latest" means. Please make sure you've done simple things like ddev poweroff and perhaps rebooting your computer.

indeed, thanks @rfay

from ddev debug test

======== Existing project config ========
ddev installation alternate locations:
/usr/local/bin/ddev

These config files were loaded for project drupal-core: [/.../drupal-core/.ddev/config.yaml /.../drupal-core/.ddev/config.ddev-drupal-core-dev.yaml]
name: drupal-core
type: drupal11
php_version: 8.3
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.24.4
database: {mariadb 10.11}
upload_dirs: [.ddev/tmp]
omit_containers: [db]
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
disable_settings_management: true
nodejs_version: 22
corepack_enable: true
default_container_timeout: 120
ddev_version_constraint: >=v1.23.1


======== existing project customizations ========


======== installed DDEV add-ons ========
┌──────────────────────┬─────────┬────────────────────────────────┬───────────────────────────┐
│ ADD-ON               │ VERSION │ REPOSITORY                     │ DATE INSTALLED            │
├──────────────────────┼─────────┼────────────────────────────────┼───────────────────────────┤
│ ddev-drupal-core-dev │ v1.1.2  │ justafish/ddev-drupal-core-dev │ 2025-05-07T16:02:00+03:00 │
└──────────────────────┴─────────┴────────────────────────────────┴───────────────────────────┘



======== mutagen situation ========
looking for #ddev-generated in mutagen.yml in project /.../drupal-core

unmodified #ddev-generated found in .ddev/mutagen/mutagen.yml

#docker -v Docker version 27.3.1, build ce12230

from Docker Desktop 4.41.2 (191736)

macOS: Sequoia 15.4.1

vasike avatar May 07 '25 16:05 vasike

Created draft PR https://github.com/justafish/ddev-drupal-core-dev/pull/54 for now change the test to run - use a Functional Javascript test

@justafish so could we run the tests for this?

and maybe then "fix" this update https://github.com/justafish/ddev-drupal-core-dev/commit/b72ba0d24c41d2fe78924de5c1c504ddd5c3d8f2 ... ?

vasike avatar May 08 '25 11:05 vasike