You are here

public function MediaEntityContext::assertGenericEntityEmbedForm in Lightning Media 8.3

Asserts an entity embedding form for a non-image media item.

@Then I should be able to embed the media item

File

tests/contexts/MediaEntityContext.behat.inc, line 191

Class

MediaEntityContext
Contains step definitions for interacting with media entities.

Namespace

Acquia\LightningExtension\Context

Code

public function assertGenericEntityEmbedForm() {
  $assert_session = $this
    ->assertSession();
  $form = $assert_session
    ->elementExists('css', '.entity-embed-dialog');
  $assert_session
    ->fieldNotExists('Image style', $form);
  $assert_session
    ->fieldNotExists('Alternate text', $form);
  $assert_session
    ->fieldNotExists('Title', $form);
}