You are here

private function MediaBrowserContext::openNoJS in Lightning Media 8.2

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

Opens the media browser without JavaScript.

Parameters

string $browser_id: (optional) The entity browser ID.

1 call to MediaBrowserContext::openNoJS()
MediaBrowserContext::open in tests/contexts/MediaBrowserContext.behat.inc
Opens the media browser, obviously.

File

tests/contexts/MediaBrowserContext.behat.inc, line 85

Class

MediaBrowserContext
Contains step definitions for interacting with Lightning's media browser.

Namespace

Acquia\LightningExtension\Context

Code

private function openNoJS($browser_id = 'media_browser') {
  $uuid = $this
    ->assertSession()
    ->elementExists('named', [
    'link',
    'Select entities',
  ])
    ->getAttribute('data-uuid');
  $this
    ->visitPath("/entity-browser/iframe/{$browser_id}?uuid={$uuid}");
}