protected function MediaLibraryTestBase::assertMediaLibraryGrid in Drupal 8
Same name and namespace in other branches
- 9 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\FunctionalJavascriptCode
protected function assertMediaLibraryGrid() {
$this
->assertSession()
->elementExists('css', '.js-media-library-view[data-view-display-id="widget"]');
}