You are here

public function VarbaseContext::theEitorMediaBrowserIsOpen in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.4

Same name and namespace in other branches
  1. 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
  2. 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
  3. 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
  4. 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
  5. 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()

@Then /^the editor media browser should be open$/

File

tests/features/bootstrap/VarbaseContext.php, line 233

Class

VarbaseContext
Defines application features from the specific context.

Code

public function theEitorMediaBrowserIsOpen() {
  if (!($elem = $this
    ->getSession()
    ->getPage()
    ->find('css', '.ui-dialog.media-wrapper') || !$this
    ->getSession()
    ->getPage()
    ->find('css', '.ui-dialog.media-wrapper .media-browser-panes'))) {
    throw new Exception('The editor media browser failed to open.');
  }
}