protected function MediaLibraryTestBase::switchToMediaLibraryGrid in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::switchToMediaLibraryGrid()
- 9 core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php \Drupal\Tests\media_library\FunctionalJavascript\MediaLibraryTestBase::switchToMediaLibraryGrid()
Switches to the grid display of the widget view.
File
- core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ MediaLibraryTestBase.php, line 406
Class
- MediaLibraryTestBase
- Base class for functional tests of Media Library functionality.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function switchToMediaLibraryGrid() {
$this
->getSession()
->getPage()
->clickLink('Grid');
// Assert the display change is correctly announced for screen readers.
$this
->waitForText('Loading grid view.');
$this
->waitForText('Changed to grid view.');
$this
->assertMediaLibraryGrid();
}