You are here

protected function SettingsTrayTestBase::isLabelInputVisible in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/settings_tray/tests/src/FunctionalJavascript/SettingsTrayTestBase.php \Drupal\Tests\settings_tray\FunctionalJavascript\SettingsTrayTestBase::isLabelInputVisible()
  2. 9 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.

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();
}