public function MediaLibraryContext::visitLibrary in Lightning Media 8.3
Same name and namespace in other branches
- 8.2 tests/contexts/MediaLibraryContext.behat.inc \Acquia\LightningExtension\Context\MediaLibraryContext::visitLibrary()
Visits the media overview (library).
@When I visit the media library
1 call to MediaLibraryContext::visitLibrary()
- MediaLibraryContext::assertMediaInLibrary in tests/
contexts/ MediaLibraryContext.behat.inc - Asserts that a media item is in the media library.
File
- tests/
contexts/ MediaLibraryContext.behat.inc, line 74
Class
- MediaLibraryContext
- Contains step definitions to interact with the administrative media library.
Namespace
Acquia\LightningExtension\ContextCode
public function visitLibrary() {
$this
->visitPath('/admin/content/media-table');
try {
$this
->assertSession()
->statusCodeEquals(200);
} catch (UnsupportedDriverActionException $e) {
// Not a critically important assertion, so just swallow the exception.
}
}