function MediaLibraryTestBase::assertMediaLibraryGrid

Same name in other branches
  1. 9 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::assertMediaLibraryGrid()
  2. 10 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::assertMediaLibraryGrid()
  3. 11.x core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::assertMediaLibraryGrid()

Asserts that the grid display of the widget view is visible.

2 calls to MediaLibraryTestBase::assertMediaLibraryGrid()
MediaLibraryTestBase::openMediaLibraryForField in core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php
Clicks a button that opens a media widget and confirms it is open.
MediaLibraryTestBase::switchToMediaLibraryGrid in core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php
Switches to the grid display of the widget view.

File

core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php, line 429

Class

MediaLibraryTestBase
Base class for functional tests of Media Library functionality.

Namespace

Drupal\Tests\media_library\FunctionalJavascript

Code

protected function assertMediaLibraryGrid() {
    $this->assertSession()
        ->elementExists('css', '.js-media-library-view[data-view-display-id="widget"]');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.