Describe your bug or feature request.
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');
Issue fork commerce-3608038
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
Comment #4
jsacksick commentedReally great job if this is fixed for good!!!