summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
authorJohannes Hoppe <info@johanneshoppe.com>2019-07-10 12:31:16 +0200
committerCarlton Gibson <carlton.gibson@noumenal.es>2019-07-10 12:31:16 +0200
commit00d4e6f8b587dcea147c51ece253dc54c461a11d (patch)
tree34c032858f94e79172a214adc9f11d6fd010fa7c /tests/admin_views
parented668796f6c7e59ca3f35e9d87d940e043a3eff3 (diff)
Updated Select2 to version 4.0.7.
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/test_autocomplete_view.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/admin_views/test_autocomplete_view.py b/tests/admin_views/test_autocomplete_view.py
index d1a445d6dc..5855aa71d4 100644
--- a/tests/admin_views/test_autocomplete_view.py
+++ b/tests/admin_views/test_autocomplete_view.py
@@ -189,6 +189,7 @@ class SeleniumTests(AdminSeleniumTestCase):
self.assertEqual(len(results), PAGINATOR_SIZE + 11)
# Limit the results with the search field.
search.send_keys('Who')
+ self.assertTrue(result_container.is_displayed())
results = result_container.find_elements_by_css_selector('.select2-results__option')
self.assertEqual(len(results), 1)
# Select the result.
@@ -222,6 +223,7 @@ class SeleniumTests(AdminSeleniumTestCase):
self.assertEqual(len(results), 31)
# Limit the results with the search field.
search.send_keys('Who')
+ self.assertTrue(result_container.is_displayed())
results = result_container.find_elements_by_css_selector('.select2-results__option')
self.assertEqual(len(results), 1)
# Select the result.