ImageBrowserContext.behat.inc in Lightning Media 8
File
tests/contexts/ImageBrowserContext.behat.inc
View source
<?php
namespace Acquia\LightningExtension\Context;
use Drupal\DrupalExtension\Context\DrupalSubContextBase;
class ImageBrowserContext extends DrupalSubContextBase {
use AwaitTrait;
public function open($field) {
$context = $this
->getContext(ElementContext::class);
$context
->assertDetails($field)
->pressButton('Select Image(s)');
$this
->awaitAjax();
$context
->enterFrame('entity_browser_iframe_image_browser');
sleep(10);
}
}