You are here

protected function CKEditorIntegrationTest::openMetadataDialog in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php \Drupal\Tests\media\FunctionalJavascript\CKEditorIntegrationTest::openMetadataDialog()

Clicks the `Edit media` button and waits for the metadata dialog.

This method assumes that the calling code has already switched into the CKEditor iframe.

2 calls to CKEditorIntegrationTest::openMetadataDialog()
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.

File

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

Class

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

Namespace

Drupal\Tests\media\FunctionalJavascript

Code

protected function openMetadataDialog() {
  $this
    ->assertNotEmpty($embedded_media = $this
    ->assertSession()
    ->waitForElementVisible('css', 'drupal-media'));
  $embedded_media
    ->pressButton('Edit media');
  $this
    ->waitForMetadataDialog();
}