private function ImageBrowserCardinalityTest::openImageBrowser in Lightning Media 8.4
Same name and namespace in other branches
- 8.3 modules/lightning_media_image/tests/src/FunctionalJavascript/ImageBrowserCardinalityTest.php \Drupal\Tests\lightning_media_image\FunctionalJavascript\ImageBrowserCardinalityTest::openImageBrowser()
Opens a modal image browser.
Parameters
string $label: The label of the image field.
1 call to ImageBrowserCardinalityTest::openImageBrowser()
- ImageBrowserCardinalityTest::testCardinality in modules/
lightning_media_image/ tests/ src/ FunctionalJavascript/ ImageBrowserCardinalityTest.php - Tests that cardinality is enforced in the image browser.
File
- modules/
lightning_media_image/ tests/ src/ FunctionalJavascript/ ImageBrowserCardinalityTest.php, line 192
Class
- ImageBrowserCardinalityTest
- Tests that the image browser handles field cardinality correctly.
Namespace
Drupal\Tests\lightning_media_image\FunctionalJavascriptCode
private function openImageBrowser($label) {
$this
->assertSession()
->elementExists('css', "details > summary:contains({$label})")
->getParent()
->pressButton('Select Image(s)');
$this
->waitForEntityBrowser('image_browser');
}