summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
diff options
context:
space:
mode:
authorCollin Anderson <collin@onetencommunications.com>2014-08-08 14:10:09 -0400
committerTim Graham <timograham@gmail.com>2014-08-12 16:17:00 -0400
commit85c22dd4c4a406301b4378a4682456dfa1900830 (patch)
tree0a29f9d7119e2408ac3f2ddf9ad2524c0184c7cf /tests/admin_widgets
parent2cc8ffe258008096a70791115b2daa12f0ef0192 (diff)
Fixed #23262 -- Made SelectFilter2.js move items on enter Key press.
Diffstat (limited to 'tests/admin_widgets')
-rw-r--r--tests/admin_widgets/tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index 79d7cbd9c8..83ae968523 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -942,6 +942,17 @@ class HorizontalVerticalFilterSeleniumFirefoxTests(AdminSeleniumWebDriverTestCas
self.assertSelectOptions(to_box,
[str(self.peter.id), str(self.jason.id)])
+ # -----------------------------------------------------------------
+ # Check that pressing enter on a filtered option sends it properly
+ # to the 'to' box.
+ self.get_select_option(to_box, str(self.jason.id)).click()
+ self.selenium.find_element_by_css_selector(remove_link).click()
+ input.send_keys('ja')
+ self.assertSelectOptions(from_box, [str(self.jason.id)])
+ input.send_keys([Keys.ENTER])
+ self.assertSelectOptions(to_box, [str(self.peter.id), str(self.jason.id)])
+ input.send_keys([Keys.BACK_SPACE, Keys.BACK_SPACE])
+
# Save and check that everything is properly stored in the database ---
self.selenium.find_element_by_xpath('//input[@value="Save"]').click()
self.wait_page_loaded()