protected function assertContextualLinkRetainsMouseup(): void
{ $assert_session =
$this->
assertSession();
$page =
$this->
getSession()->
getPage();
$body_field_selector = '.block-field-blocknodebundle-with-section-fieldbody';
$body_block =
$page->
find('css',
$body_field_selector);
$this->
assertNotEmpty($body_block);
// Get the current Y position of the body block.
$body_block_top_position =
$this->
getElementVerticalPosition($body_field_selector, 'top'
);
$body_block_contextual_link_button =
$body_block->
find('css', '.trigger'
);
$this->
assertNotEmpty($body_block_contextual_link_button);
// If the body block contextual link is hidden, make it visible.
if ($body_block_contextual_link_button->
hasClass('visually-hidden'
)) { $this->
toggleContextualTriggerVisibility($body_field_selector);
} // For the purposes of this test, the contextual link must be accessed with
// discrete steps instead of using ContextualLinkClickTrait.