You are here

public function MediaLibraryContext::visitLibrary in Lightning Media 8.2

Same name and namespace in other branches
  1. 8.3 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 65

Class

MediaLibraryContext

Namespace

Acquia\LightningExtension\Context

Code

public function visitLibrary() {

  /** @var MinkContext $context */
  $context = $this
    ->getContext(MinkContext::class);
  $context
    ->assertAtPath('/admin/content/media');
}