You are here

protected function ComplexWidgetTest::openMultiExistingForm in Inline Entity Form 8

Opens the existing node form on the "multi" field.

4 calls to ComplexWidgetTest::openMultiExistingForm()
ComplexWidgetTest::checkExistingValidationExpectation in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Check existing node field validation.
ComplexWidgetTest::testReferenceExistingValidation in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Test if invalid values get correct validation messages.
ComplexWidgetTest::testReferencingExistingEntities in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Tests if referencing existing entities work.
ComplexWidgetTest::testReferencingExistingEntitiesNoSubmit in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Tests if referencing an existing entity works without submitting the form.

File

tests/src/FunctionalJavascript/ComplexWidgetTest.php, line 806

Class

ComplexWidgetTest
IEF complex field widget tests.

Namespace

Drupal\Tests\inline_entity_form\FunctionalJavascript

Code

protected function openMultiExistingForm() {
  $assert_session = $this
    ->assertSession();
  $this
    ->assertNotEmpty($multi_fieldset = $assert_session
    ->waitForElement('css', 'fieldset[data-drupal-selector="edit-multi"]'));
  $assert_session
    ->buttonExists('Add existing node', $multi_fieldset)
    ->press();
  $this
    ->assertNotEmpty($assert_session
    ->waitForElement('xpath', $this
    ->getXpathForAutoCompleteInput()));
}