public function VarbaseContext::theEitorMediaBrowserIsOpen in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7
Same name and namespace in other branches
- 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
- 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::theEitorMediaBrowserIsOpen()
- 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.');
}
}