private function EntityEmbedTrait::waitForImageEmbedForm in Lightning Media 8.4
Same name and namespace in other branches
- 8.3 tests/src/Traits/EntityEmbedTrait.php \Drupal\Tests\lightning_media\Traits\EntityEmbedTrait::waitForImageEmbedForm()
Waits for an image-based entity embed form to appear.
Return value
\Behat\Mink\Element\NodeElement The entity embed form.
File
- tests/
src/ Traits/ EntityEmbedTrait.php, line 30
Class
- EntityEmbedTrait
- Contains helper methods for interacting with Entity Embed.
Namespace
Drupal\Tests\lightning_media\TraitsCode
private function waitForImageEmbedForm() {
$assert_session = $this
->assertSession();
$embed_form = $this
->waitForEmbedForm();
$assert_session
->selectExists('Image style', $embed_form);
$assert_session
->fieldExists('Alternate text', $embed_form);
$assert_session
->fieldExists('Title', $embed_form);
return $embed_form;
}