protected function EditModeTest::pressToolbarEditButton in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::pressToolbarEditButton()
- 9 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::pressToolbarEditButton()
Presses the toolbar 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();
}