You are here

public function ImageBrowserContext::assertCrop in Lightning Media 8.2

Same name and namespace in other branches
  1. 8.3 tests/contexts/ImageBrowserContext.behat.inc \Acquia\LightningExtension\Context\ImageBrowserContext::assertCrop()

Asserts that cropping is enabled for an uploaded image.

@Then I should be able to crop the image

File

tests/contexts/ImageBrowserContext.behat.inc, line 44

Class

ImageBrowserContext
Contains step definitions for interacting with Lightning's image browsers.

Namespace

Acquia\LightningExtension\Context

Code

public function assertCrop() {

  /** @var \Acquia\LightningExtension\Context\ElementContext $context */
  $context = $this
    ->getContext(ElementContext::class);
  $context
    ->assertOpenDetails('Crop image');
  $context
    ->assertDetails('Freeform');
}