private function EntityEmbedTrait::waitForEmbedForm 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::waitForEmbedForm()
Waits for the entity embed form to appear.
Return value
\Behat\Mink\Element\NodeElement The entity embed form.
3 calls to EntityEmbedTrait::waitForEmbedForm()
- 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\TraitsCode
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;
}