You are here

public function MediaBrowserContext::open in Lightning Media 8.2

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

Opens the media browser, obviously.

@When I open the media browser

Parameters

string $button: (optional) The embed button ID.

File

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

Class

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

Namespace

Acquia\LightningExtension\Context

Code

public function open($button = 'media_browser') {
  $this->isJS ? $this
    ->openJS($button) : $this
    ->openNoJS();
}