protected function EditModeTest::pressToolbarEditButton in Drupal 8
Same name and namespace in other branches
- 9 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 96
Class
- EditModeTest
- Tests edit mode.
Namespace
Drupal\Tests\contextual\FunctionalJavascriptCode
protected function pressToolbarEditButton() {
$edit_button = $this
->getSession()
->getPage()
->find('css', '#toolbar-bar div.contextual-toolbar-tab button');
$edit_button
->press();
}