Fixed
Project:
Commerce Core
Version:
3.x-dev
Component:
Developer experience
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2026 at 18:00 UTC
Updated:
6 Jul 2026 at 15:35 UTC
Jump to comment: Most recent
We have ProductLayoutBuilderIntegrationTest that fails randomly when checking whether the element doesn't exist after the AJAX submission.
I guess what is happening here is that the AJAX commands returned by the request don't have time to be executed before $assert_session->assertNoElementAfterWait('css', '#drupal-off-canvas');.
What I recommend is replacing
$assert_session->assertWaitOnAjaxRequest();
$assert_session->assertNoElementAfterWait('css', '#drupal-off-canvas');
with
$assert_session->waitForElementRemoved('css', '#drupal-off-canvas');
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 #4
jsacksick commentedReally great job if this is fixed for good!!!