function EditModeTest::pressToolbarEditButton
Same name in other branches
- 9 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::pressToolbarEditButton()
- 8.9.x core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::pressToolbarEditButton()
- 10 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::pressToolbarEditButton()
Presses the toolbar edit mode.
1 call to EditModeTest::pressToolbarEditButton()
- EditModeTest::testEditModeEnableDisable in core/
modules/ contextual/ tests/ src/ FunctionalJavascript/ EditModeTest.php - Tests enabling and disabling edit mode.
File
-
core/
modules/ contextual/ tests/ src/ FunctionalJavascript/ EditModeTest.php, line 122
Class
- EditModeTest
- Tests edit mode.
Namespace
Drupal\Tests\contextual\FunctionalJavascriptCode
protected function pressToolbarEditButton() : void {
$edit_button = $this->getSession()
->getPage()
->find('css', '#toolbar-bar div.contextual-toolbar-tab button');
$edit_button->press();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.