You are here

private function EntityEmbedTrait::waitForStandardEmbedForm in Lightning Media 8.4

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

Waits for a non-image based entity embed form to appear.

Return value

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

File

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

Class

EntityEmbedTrait
Contains helper methods for interacting with Entity Embed.

Namespace

Drupal\Tests\lightning_media\Traits

Code

private function waitForStandardEmbedForm() {
  $assert_session = $this
    ->assertSession();
  $embed_form = $this
    ->waitForEmbedForm();
  $assert_session
    ->fieldNotExists('Image style', $embed_form);
  $assert_session
    ->fieldNotExists('Alternate text', $embed_form);
  $assert_session
    ->fieldNotExists('Title', $embed_form);
  return $embed_form;
}