You are here

protected function MultiStepSelectionDisplayTest::closeEntityBrowser in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 tests/src/FunctionalJavascript/MultiStepSelectionDisplayTest.php \Drupal\Tests\entity_browser\FunctionalJavascript\MultiStepSelectionDisplayTest::closeEntityBrowser()

Close iframe entity browser and change scope to base page.

1 call to MultiStepSelectionDisplayTest::closeEntityBrowser()
MultiStepSelectionDisplayTest::testAjaxCommands in tests/src/FunctionalJavascript/MultiStepSelectionDisplayTest.php
Check that selection state in entity browser Inline Entity Form.

File

tests/src/FunctionalJavascript/MultiStepSelectionDisplayTest.php, line 29

Class

MultiStepSelectionDisplayTest
Test for multi_step_display selection display.

Namespace

Drupal\Tests\entity_browser\FunctionalJavascript

Code

protected function closeEntityBrowser() {
  $this
    ->assertSession()
    ->elementExists('xpath', '//*[@data-drupal-selector="edit-use-selected"]')
    ->press();
  $this
    ->getSession()
    ->switchToIFrame();
  $this
    ->waitForAjaxToFinish();
}