diff options
Diffstat (limited to 'core/modules')
-rw-r--r-- | core/modules/system/src/Tests/Form/ElementTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/system/src/Tests/Form/ElementTest.php b/core/modules/system/src/Tests/Form/ElementTest.php index d7085dd621e..6555a4f063f 100644 --- a/core/modules/system/src/Tests/Form/ElementTest.php +++ b/core/modules/system/src/Tests/Form/ElementTest.php @@ -151,6 +151,9 @@ class ElementTest extends WebTestBase { $this->drupalLogin($user); $this->drupalGet('form-test/autocomplete'); + // Make sure that the autocomplete library is added. + $this->assertRaw('core/misc/autocomplete.js'); + $result = $this->xpath('//input[@id="edit-autocomplete-1" and contains(@data-autocomplete-path, "form-test/autocomplete-1")]'); $this->assertEqual(count($result), 1, 'Ensure that the user does have access to the autocompletion'); $result = $this->xpath('//input[@id="edit-autocomplete-2" and contains(@data-autocomplete-path, "form-test/autocomplete-2/value")]'); |