You are here

public function VarbaseContext::theImageMediaBrowserIsOpen in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x

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

Check if the Image media browser opened.

Varbase Context #varbase.

Example #1: Then the image media browser should be open Example #2: And the image media browser should be open

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

File

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

Class

VarbaseContext
Defines application features from the specific context.

Code

public function theImageMediaBrowserIsOpen() {
  if (!$this
    ->getSession()
    ->getPage()
    ->find('css', '.ui-dialog.ui-widget-content')) {
    throw new \Exception('The image media browser failed to open.');
  }
}