function 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 1337

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.