if (isset($toolbar_item)) { // Check that you can open a toolbar tray and it will be closed after
// entering edit mode.
if ($element =
$page->
find('css', "#toolbar-administration a.is-active"
)) { // If a tray was open from page load close it.
$element->
click();
$web_assert->
assertNoElementAfterWait('css', "#toolbar-administration a.is-active"
);
} $page->
find('css',
$toolbar_item)->
click();
$this->
assertElementVisibleAfterWait('css', "{
$toolbar_item}.is-active"
);
} $this->
enableEditMode();
if (isset($toolbar_item)) { $web_assert->
assertNoElementAfterWait('css', "{
$toolbar_item}.is-active"
);
} $this->
openBlockForm($block_selector);
switch ($block_plugin) { case 'system_powered_by_block':
// Confirm "Display Title" is not checked.
$web_assert->
checkboxNotChecked('settings[label_display]'
);
// Confirm Title is not visible.
$this->
assertFalse($this->
isLabelInputVisible(), 'Label is not visible'
);
$page->
checkField('settings[label_display]'
);