private function MediaBrowserContext::openNoJs in Lightning Media 8.3
Same name and namespace in other branches
- 8.2 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 95
Class
- MediaBrowserContext
- Contains step definitions for interacting with Lightning's media browser.
Namespace
Acquia\LightningExtension\ContextCode
private function openNoJs($browser_id = 'media_browser') {
$uuid = $this
->assertSession()
->elementExists('named', [
'button',
'Add media',
])
->getAttribute('data-uuid');
$this
->visitPath("/entity-browser/modal/{$browser_id}?uuid={$uuid}");
}