You are here

public function ThunderEntityBrowserTestTrait::submitEntityBrowser in Thunder 8.3

Same name and namespace in other branches
  1. 8.5 tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
  2. 8.2 tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
  3. 8.4 tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
  4. 6.2.x tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
  5. 6.0.x tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
  6. 6.1.x tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()

Submit changes in modal entity browser.

Parameters

\Behat\Mink\Element\DocumentElement $page: Current active page.

1 call to ThunderEntityBrowserTestTrait::submitEntityBrowser()
MediaGalleryModifyTest::testAddRemove in tests/src/FunctionalJavascript/MediaGalleryModifyTest.php
Test add/remove Images in Gallery.

File

tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php, line 43

Class

ThunderEntityBrowserTestTrait
Trait with support for handling Entity Browser actions.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

public function submitEntityBrowser(DocumentElement $page) {
  $this
    ->clickButtonDrupalSelector($page, 'edit-use-selected', FALSE);
  $this
    ->getSession()
    ->switchToIFrame();
  $this
    ->assertSession()
    ->assertWaitOnAjaxRequest();
}