You are here

protected function SettingsTrayTestBase::isLabelInputVisible in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php \Drupal\Tests\settings_tray\FunctionalJavascript\SettingsTrayTestBase::isLabelInputVisible()
  2. 10 core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php \Drupal\Tests\settings_tray\FunctionalJavascript\SettingsTrayTestBase::isLabelInputVisible()

Determines if the label input is visible.

Return value

bool TRUE if the label is visible, FALSE if it is not.

2 calls to SettingsTrayTestBase::isLabelInputVisible()
SettingsTrayBlockFormTest::doTestBlocks in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayBlockFormTest.php
Tests opening off-canvas dialog by click blocks and elements in the blocks.
SettingsTrayTestBase::assertOffCanvasBlockFormIsValid in core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php
Asserts that Off-Canvas block form is valid.

File

core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php, line 185

Class

SettingsTrayTestBase
Base class for Settings Tray tests.

Namespace

Drupal\Tests\settings_tray\FunctionalJavascript

Code

protected function isLabelInputVisible() {
  return $this
    ->getSession()
    ->getPage()
    ->find('css', static::LABEL_INPUT_SELECTOR)
    ->isVisible();
}