You are here

protected function QuickEditJavascriptTestBase::saveQuickEdit in Drupal 8

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

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

3 calls to QuickEditJavascriptTestBase::saveQuickEdit()
QuickEditFileTest::testRemove in core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditFileTest.php
Tests if a file can be in-place removed with Quick Edit.
QuickEditImageTest::testImageInPlaceEditor in core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php
Test that quick editor works correctly with images.
QuickEditIntegrationTest::testArticleNode in core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditIntegrationTest.php
Tests if an article node can be in-place edited with Quick Edit.

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