Loading tests/src/FunctionalJavascript/DynamicEntityReferenceTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -172,14 +172,14 @@ class DynamicEntityReferenceTest extends WebDriverTestBase { $entity_type_field->selectOption('user'); $this->performAutocompleteQuery($autocomplete_query, $autocomplete_field); $this->selectAutocompleteOption(); $assert_session->pageTextContains($this->anotherUser->label()); $this->assertStringContainsString($this->anotherUser->label(), $autocomplete_field->getValue()); // Change to entity_test, this should automatically clear the autocomplete // field. $entity_type_field->selectOption('entity_test'); $this->assertEmpty($autocomplete_field->getValue()); $this->performAutocompleteQuery($autocomplete_query, $autocomplete_field); $this->selectAutocompleteOption(); $assert_session->pageTextContains($this->testEntity->label()); $this->assertStringContainsString($this->testEntity->label(), $autocomplete_field->getValue()); } /** Loading Loading @@ -277,7 +277,7 @@ class DynamicEntityReferenceTest extends WebDriverTestBase { } /** * Peforms an autocomplete query on an element. * Performs an autocomplete query on an element. * * @param string $autocomplete_query * String to search for. Loading Loading
tests/src/FunctionalJavascript/DynamicEntityReferenceTest.php +3 −3 Original line number Diff line number Diff line Loading @@ -172,14 +172,14 @@ class DynamicEntityReferenceTest extends WebDriverTestBase { $entity_type_field->selectOption('user'); $this->performAutocompleteQuery($autocomplete_query, $autocomplete_field); $this->selectAutocompleteOption(); $assert_session->pageTextContains($this->anotherUser->label()); $this->assertStringContainsString($this->anotherUser->label(), $autocomplete_field->getValue()); // Change to entity_test, this should automatically clear the autocomplete // field. $entity_type_field->selectOption('entity_test'); $this->assertEmpty($autocomplete_field->getValue()); $this->performAutocompleteQuery($autocomplete_query, $autocomplete_field); $this->selectAutocompleteOption(); $assert_session->pageTextContains($this->testEntity->label()); $this->assertStringContainsString($this->testEntity->label(), $autocomplete_field->getValue()); } /** Loading Loading @@ -277,7 +277,7 @@ class DynamicEntityReferenceTest extends WebDriverTestBase { } /** * Peforms an autocomplete query on an element. * Performs an autocomplete query on an element. * * @param string $autocomplete_query * String to search for. Loading