function CKEditorIntegrationTest::submitDialog

Closes and submits the metadata dialog.

5 calls to CKEditorIntegrationTest::submitDialog()
CKEditorIntegrationTest::fillFieldInMetadataDialogAndSubmit in core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
Fills in a field in the metadata dialog for an embedded media item.
CKEditorIntegrationTest::testAlt in core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
Tests the EditorMediaDialog can set the alt attribute.
CKEditorIntegrationTest::testEditableCaption in core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
Tests caption editing in the CKEditor widget.
CKEditorIntegrationTest::testTranslationAlt in core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
Test that dialog loads appropriate translation's alt text.
CKEditorIntegrationTest::testViewMode in core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php
Tests the EditorMediaDialog can set the data-view-mode attribute.

File

core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php, line 1394

Class

CKEditorIntegrationTest
@coversDefaultClass \Drupal\media\Plugin\CKEditorPlugin\DrupalMedia @group media

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

protected function submitDialog() {
    $this->assertNotEmpty($dialog_buttons = $this->assertSession()
        ->elementExists('css', 'div.ui-dialog-buttonpane'));
    $dialog_buttons->pressButton('Save');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.