You are here

protected function QuickEditJavascriptTestBase::saveQuickEdit in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditJavascriptTestBase::saveQuickEdit()
  2. 9 core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditJavascriptTestBase::saveQuickEdit()

Clicks the 'Save' button in the Quick Edit entity toolbar.

File

core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditJavascriptTestBase.php, line 112

Class

QuickEditJavascriptTestBase
Base class for testing the QuickEdit.

Namespace

Drupal\Tests\quickedit\FunctionalJavascript

Code

protected function saveQuickEdit() {
  $quickedit_entity_toolbar = $this
    ->getSession()
    ->getPage()
    ->findById('quickedit-entity-toolbar');
  $save_button = $quickedit_entity_toolbar
    ->find('css', 'button.action-save');
  $save_button
    ->press();
  $this
    ->assertSame('Saving', $save_button
    ->getText());
}