$this->
waitForOffCanvasArea();
$page->
pressButton('Close'
);
$assert_session->
assertNoElementAfterWait('css', '#drupal-off-canvas'
);
// Run the steps a second time after closing dialog, which reverses the
// order that behaviors.layoutBuilderDisableInteractiveElements and
// contextual link initialization occurs.
$this->
clickContextualLink('.block-field-blocknodebundle-with-section-fieldbody [data-contextual-id^="layout_builder_block"]', 'Configure'
);
$this->
assertNotEmpty($assert_session->
waitForElementVisible('css', '#drupal-off-canvas'
));
$page->
pressButton('Close'
);
$assert_session->
assertNoElementAfterWait('css', '#drupal-off-canvas'
);
$this->
assertContextualLinkRetainsMouseup();
} /**
* Makes sure contextual links respond to mouseup event.
*
* Disabling interactive elements includes preventing defaults on the mouseup
* event for links. However, this should not happen with contextual links.
* This is confirmed by clicking a contextual link then moving the mouse
* pointer. If mouseup is working properly, the draggable element will not
* be moved by the pointer moving.
*
* @internal
*/