You are here

protected function MediaImageTest::submitDialog in Entity Embed 8

Helper function to submit dialog and focus on ckeditor frame.

2 calls to MediaImageTest::submitDialog()
MediaImageTest::testAltAndTitle in tests/src/FunctionalJavascript/MediaImageTest.php
Tests alt and title overriding for embedded images.
MediaImageTest::testCkeditorWidgetHasEditableCaption in tests/src/FunctionalJavascript/MediaImageTest.php
Tests caption editing in the CKEditor widget.

File

tests/src/FunctionalJavascript/MediaImageTest.php, line 817

Class

MediaImageTest
Test Media Image specific functionality.

Namespace

Drupal\Tests\entity_embed\FunctionalJavascript

Code

protected function submitDialog() {
  $this
    ->assertSession()
    ->elementExists('css', 'button.button--primary')
    ->press();
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
  $this
    ->getSession()
    ->switchToIFrame('ckeditor');
}