Make automated tests compatible with Drupal 11

Created on 25 June 2024, 6 months ago
Updated 9 July 2024, 5 months ago

Problem/motivation

Automated tests on Drupal 11 are failing due to vestigial calls to Ajax "wait" commands, which have been removed. Example:

1) Drupal\Tests\layout_builder_restrictions_by_region\FunctionalJavascript\BlockPlacementAllowlistTest::testBlockRestriction
RuntimeException: There are no AJAX requests to wait for.

#3061852: [META] Deprecate assertWaitOnAjaxRequest() and make the JsWebAssert::waitFor*() methods behave like real assertions β†’

Steps to reproduce

See recent pipeline run: https://git.drupalcode.org/project/layout_builder_restrictions/-/jobs/19...

Proposed resolution

Replace assertWaitOnAjaxRequest with actual waits for content to appear.

This module uses Gitlab CI for automated testing of proposed code changes. To contribute code changes, create a merge request. Patch files will not trigger automated testing and are not sufficient for review.
πŸ“Œ Task
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

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