function MediaLibraryTestBase::assertMediaLibraryGrid
Same name in other branches
- 9 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::assertMediaLibraryGrid()
- 8.9.x core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::assertMediaLibraryGrid()
- 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 448
Class
- MediaLibraryTestBase
- Base class for functional tests of Media Library functionality.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function assertMediaLibraryGrid() {
$this->assertSession()
->assertWaitOnAjaxRequest();
$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.