protected function CardinalityTest::openIframe in Entity Browser 8
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/CardinalityTest.php \Drupal\Tests\entity_browser\FunctionalJavascript\CardinalityTest::openIframe()
Helper function for repetitive task.
Throws
\Behat\Mink\Exception\ElementNotFoundException
1 call to CardinalityTest::openIframe()
- CardinalityTest::testEntityReferenceWidget in tests/src/ FunctionalJavascript/ CardinalityTest.php 
- Tests Entity Reference widget.
File
- tests/src/ FunctionalJavascript/ CardinalityTest.php, line 368 
Class
- CardinalityTest
- Tests the Cardinality handling.
Namespace
Drupal\Tests\entity_browser\FunctionalJavascriptCode
protected function openIframe() {
  $open_iframe_link = $this
    ->assertSession()
    ->elementExists('css', 'a[data-drupal-selector="edit-field-fellowship-entity-browser-entity-browser-link"]');
  $open_iframe_link
    ->click();
  $this
    ->waitForAjaxToFinish();
  $this
    ->getSession()
    ->switchToIFrame('entity_browser_iframe_cardinality');
  $this
    ->waitForAjaxToFinish();
}