private function EntityEmbedTrait::waitForStandardEmbedForm in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 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.
2 calls to EntityEmbedTrait::waitForStandardEmbedForm()
- CKEditorMediaBrowserTest::testDocumentEmbed in tests/
src/ FunctionalJavascript/ CKEditorMediaBrowserTest.php - Tests that the image embed plugin is not used to embed a document.
- EmbeddedMediaTest::testEmbedCodeBasedEmbeddedMedia in tests/
src/ FunctionalJavascript/ EmbeddedMediaTest.php - Tests embedding embed code-based media, with no image options.
File
- tests/
src/ Traits/ EntityEmbedTrait.php, line 47
Class
- EntityEmbedTrait
- Contains helper methods for interacting with Entity Embed.
Namespace
Drupal\Tests\lightning_media\TraitsCode
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;
}