function MediaTest::submitDialog

Closes and submits the metadata dialog.

File

core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php, line 1446

Class

MediaTest
@coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalMedia[[api-linebreak]] @group ckeditor @group legacy

Namespace

Drupal\Tests\ckeditor\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.