function MediaTest::submitDialog
Closes and submits the metadata dialog.
5 calls to MediaTest::submitDialog()
- MediaTest::fillFieldInMetadataDialogAndSubmit in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - Fills in a field in the metadata dialog for an embedded media item.
- MediaTest::testAlt in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - Tests the EditorMediaDialog can set the alt attribute.
- MediaTest::testEditableCaption in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - Tests caption editing in the CKEditor widget.
- MediaTest::testTranslationAlt in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - Tests that dialog loads appropriate translation's alt text.
- MediaTest::testViewMode in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - Tests the EditorMediaDialog can set the data-view-mode attribute.
File
-
core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php, line 1446
Class
- MediaTest
- @coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalMedia @group ckeditor @group legacy
Namespace
Drupal\Tests\ckeditor\FunctionalJavascriptCode
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.