Problem/motivation

Drupal 10.2.x changed what blocks are available, and therefore tests now fail with errors like:

1) Drupal\Tests\layout_builder_restrictions_by_region\FunctionalJavascript\BlockPlacementAllowlistTest::testBlockRestriction
Behat\Mink\Exception\ExpectationException: Link with label Primary admin actions not found.

Proposed resolution

Rework the test logic to comply with Drupal 10.2.x block logic.

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.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mark_fullmer created an issue. See original summary.

  • mark_fullmer committed 0832119a on 8.x-2.x
    Issue #3447701 by mark_fullmer: Tests fail on Drupal 10.2.x
    
mark_fullmer’s picture

Status: Active » Fixed

Tests now pass on Drupal 10; They are failing (expectedly) on Drupal 11. That will be addressed in #3446375: Drupal 11 compatibility.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.