Fixed
Project:
Layout Builder Restrictions
Version:
3.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
6 Mar 2026 at 02:18 UTC
Updated:
23 Jul 2026 at 15:31 UTC
Jump to comment: Most recent
One of the automated tests is unreliable. Sometimes it passes, and sometimes it fails, even when there are no code changes. When I run the test locally, it sometimes fails on different lines.
Run the test locally:
phpunit -c core modules/layout_builder_restrictions/modules/layout_builder_restrictions_by_region/tests/src/FunctionalJavascript/BlockPlacementDenylistTest.php
Or look at the pipelines for this project.
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
Comment #2
mark_fullmerComment #5
mark_fullmerWell, after adding some more waitForText() statements the tests are significantly more stable: all tests pass now on multiple runs, though I'm not convinced there won't be any more blips. But I think the prudent thing is to move ahead with these stabilizations, and note that the additional waitForText() statements seem to be sufficient as a mitigating practice, so if we do see blips in the future, that should be the first thing we look to for a remediation.