$page->
pressButton($button_text);
// Make sure the changes are present.
$new_page_text_locator = "
$block_selector $label_selector:contains(
$new_page_text)";
$this->
assertElementVisibleAfterWait('css',
$new_page_text_locator);
// The page is loaded with the new change but make sure page is
// completely loaded.
$this->
assertPageLoadComplete();
} $this->
openBlockForm($block_selector);
$this->
disableEditMode();
// Canvas should close when editing module is closed.
$this->
waitForOffCanvasToClose();
$this->
enableEditMode();
// Open block form by clicking an element inside the block.
// This confirms that default action for links and form elements is
// suppressed.
$this->
openBlockForm("
$block_selector {
$element_selector}",
$block_selector);
$web_assert->
elementTextContains('css', '.contextual-toolbar-tab button', 'Editing'
);
$web_assert->
elementAttributeContains('css', '.dialog-off-canvas-main-canvas', 'class', 'js-settings-tray-edit-mode'
);