You are here

private function ImageBrowserUploadValidationTest::open in Lightning Media 8.2

Opens a modal image browser.

Parameters

string $label: The label of the image field.

1 call to ImageBrowserUploadValidationTest::open()
ImageBrowserUploadValidationTest::testUploadFileSizeValidation in tests/src/ExistingSiteJavascript/ImageBrowserUploadValidationTest.php
Tests that image browser upload widget respects max file size of the field.

File

tests/src/ExistingSiteJavascript/ImageBrowserUploadValidationTest.php, line 107

Class

ImageBrowserUploadValidationTest
@group lightning @group lightning_media

Namespace

Drupal\Tests\lightning_media\ExistingSiteJavascript

Code

private function open($label) {
  $this->assert
    ->buttonExists('Select Image(s)', $this
    ->getWrapper($label))
    ->press();
  $this->assert
    ->assertWaitOnAjaxRequest();
  $this
    ->getSession()
    ->switchToIFrame('entity_browser_iframe_image_browser');
}