function SettingsTrayTestBase::isLabelInputVisible

Same name 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()
  3. 11.x 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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.