You are here

protected function CKEditorIntegrationTest::submitDialog in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php \Drupal\Tests\media\FunctionalJavascript\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
Tests 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 1433

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