Fix phpunit erros on Drupal 10.2

Created on 4 January 2024, about 1 year ago
Updated 24 January 2024, about 1 year ago

Problem/Motivation

There were 4 errors:
1) Drupal\Tests\pathauto\Functional\PathautoBulkUpdateTest::testBulkUpdate
Behat\Mink\Exception\DriverException: Only string values can be used for a radio input.
/builds/issue/pathauto-3411808/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:415
/builds/issue/pathauto-3411808/vendor/behat/mink/src/Element/NodeElement.php:118
/builds/issue/pathauto-3411808/web/core/tests/Drupal/Tests/UiHelperTrait.php:96
/builds/issue/pathauto-3411808/tests/src/Functional/PathautoBulkUpdateTest.php:119
/builds/issue/pathauto-3411808/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

2) Drupal\Tests\pathauto\FunctionalJavascript\PathautoLocaleTest::testLanguagePatterns
WebDriver\Exception\ElementNotVisible: element not interactable
  (Session info: headless chrome=106.0.5249.103)
  (Driver info: chromedriver=106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249@{#569}),platform=Linux 5.4.241-150.347.amzn2.x86_64 x86_64)
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:198
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:169
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:240
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/Container.php:241
/builds/issue/pathauto-3411808/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php:773
/builds/issue/pathauto-3411808/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php:640
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php:168
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php:202
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php:179
/builds/issue/pathauto-3411808/vendor/behat/mink/src/Element/NodeElement.php:118
/builds/issue/pathauto-3411808/web/core/tests/Drupal/Tests/UiHelperTrait.php:96
/builds/issue/pathauto-3411808/tests/src/FunctionalJavascript/PathautoLocaleTest.php:226
/builds/issue/pathauto-3411808/tests/src/FunctionalJavascript/PathautoLocaleTest.php:121
/builds/issue/pathauto-3411808/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

3) Drupal\Tests\pathauto\FunctionalJavascript\PathautoLocaleTest::testLanguageNotApplicable
WebDriver\Exception\ElementNotVisible: element not interactable
  (Session info: headless chrome=106.0.5249.103)
  (Driver info: chromedriver=106.0.5249.61 (511755355844955cd3e264779baf0dd38212a4d0-refs/branch-heads/5249@{#569}),platform=Linux 5.4.241-150.347.amzn2.x86_64 x86_64)
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:198
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:169
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:240
/builds/issue/pathauto-3411808/vendor/instaclick/php-webdriver/lib/WebDriver/Container.php:241
/builds/issue/pathauto-3411808/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php:773
/builds/issue/pathauto-3411808/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php:640
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php:168
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php:202
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php:179
/builds/issue/pathauto-3411808/vendor/behat/mink/src/Element/NodeElement.php:118
/builds/issue/pathauto-3411808/web/core/tests/Drupal/Tests/UiHelperTrait.php:96
/builds/issue/pathauto-3411808/tests/src/FunctionalJavascript/PathautoLocaleTest.php:226
/builds/issue/pathauto-3411808/tests/src/FunctionalJavascript/PathautoLocaleTest.php:197
/builds/issue/pathauto-3411808/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

4) Drupal\Tests\pathauto\FunctionalJavascript\PathautoUiTest::testPatternsWorkflow
RuntimeException: Unable to complete AJAX request.
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:117
/builds/issue/pathauto-3411808/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:38
/builds/issue/pathauto-3411808/tests/src/FunctionalJavascript/PathautoUiTest.php:213
/builds/issue/pathauto-3411808/vendor/phpunit/phpunit/src/Framework/TestResult.php:728

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇺Russia zniki.ru

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