Fix FunctionalJavascript tests for Drupal 10.2

Created on 8 January 2024, 11 months ago
Updated 24 January 2024, 10 months ago

Problem/Motivation

Source https://git.drupalcode.org/project/address/-/jobs/589556

On Drupal 10.2 after 📌 Stabilize FunctionalJavascript testing AJAX: add ::assertExpectedAjaxRequest() Fixed some AJAX tests starts to fail.

There were 4 errors:
1) Drupal\Tests\address\FunctionalJavascript\AddressDefaultWidgetTest::testCountries
RuntimeException: Unable to complete AJAX request.
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:117
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:38
/builds/project/address/tests/src/FunctionalJavascript/AddressDefaultWidgetTest.php:200
/builds/project/address/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
2) Drupal\Tests\address\FunctionalJavascript\AddressDefaultWidgetTest::testFields
RuntimeException: Unable to complete AJAX request.
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:117
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:38
/builds/project/address/tests/src/FunctionalJavascript/AddressDefaultWidgetTest.php:382
/builds/project/address/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
3) Drupal\Tests\address\FunctionalJavascript\AddressDefaultWidgetTest::testClearValues
RuntimeException: Unable to complete AJAX request.
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:117
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:38
/builds/project/address/tests/src/FunctionalJavascript/AddressDefaultWidgetTest.php:480
/builds/project/address/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
4) Drupal\Tests\address\FunctionalJavascript\AddressDefaultWidgetTest::testMultipleWidget
RuntimeException: Unable to complete AJAX request.
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:117
/builds/project/address/web/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php:38
/builds/project/address/tests/src/FunctionalJavascript/AddressDefaultWidgetTest.php:556
/builds/project/address/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

2.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