public function ThunderEntityBrowserTestTrait::submitEntityBrowser in Thunder 6.0.x
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
- 8.2 tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
- 8.3 tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
- 8.4 tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
- 6.2.x tests/src/FunctionalJavascript/ThunderEntityBrowserTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderEntityBrowserTestTrait::submitEntityBrowser()
- 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\FunctionalJavascriptCode
public function submitEntityBrowser(DocumentElement $page) {
$this
->clickButtonDrupalSelector($page, 'edit-use-selected', FALSE);
$this
->getSession()
->switchToIFrame();
$this
->assertSession()
->assertWaitOnAjaxRequest();
}