protected function MediaLibraryTestBase::assertMediaLibraryGrid in Drupal 9
Same name and namespace in other branches
- 8 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 431
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"]');
}