You are here

private function EntityEmbedTrait::waitForEmbedForm in Lightning Media 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Traits/EntityEmbedTrait.php \Drupal\Tests\lightning_media\Traits\EntityEmbedTrait::waitForEmbedForm()

Waits for the entity embed form to appear.

Return value

\Behat\Mink\Element\NodeElement The entity embed form.

4 calls to EntityEmbedTrait::waitForEmbedForm()
CKEditorMediaBrowserTest::testEditEmbed in tests/src/FunctionalJavascript/CKEditorMediaBrowserTest.php
Tests that the entity embed dialog opens when editing a pre-existing embed.
EntityEmbedTrait::submitEmbedForm in tests/src/Traits/EntityEmbedTrait.php
Presses the "Embed" button in the embed form, then waits for it to vanish.
EntityEmbedTrait::waitForImageEmbedForm in tests/src/Traits/EntityEmbedTrait.php
Waits for an image-based entity embed form to appear.
EntityEmbedTrait::waitForStandardEmbedForm in tests/src/Traits/EntityEmbedTrait.php
Waits for a non-image based entity embed form to appear.

File

tests/src/Traits/EntityEmbedTrait.php, line 18

Class

EntityEmbedTrait
Contains helper methods for interacting with Entity Embed.

Namespace

Drupal\Tests\lightning_media\Traits

Code

private function waitForEmbedForm() {
  $embed_form = $this
    ->assertSession()
    ->waitForElement('css', 'form.entity-embed-dialog.entity-embed-dialog-step--embed');
  $this
    ->assertNotEmpty($embed_form);
  return $embed_form;
}