summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-06-20 19:47:15 -0400
committerTim Graham <timograham@gmail.com>2015-06-22 07:24:57 -0400
commit7f155a07032caf916518beca5b33fa5a90300209 (patch)
treeaa6da76bed00722cc4e8f2227debf5c1f1c201e4 /tests/admin_widgets
parente7b4bd48c7b81718cfae6f30f1868cf45311ca86 (diff)
Refs #25006 -- Added a '6 p.m.' option to the admin's time picker.
Diffstat (limited to 'tests/admin_widgets')
-rw-r--r--tests/admin_widgets/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index 3ab7938ece..c42553a339 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -645,6 +645,13 @@ class DateTimePickerSeleniumFirefoxTests(SeleniumDataMixin, AdminSeleniumWebDriv
# Check that the time picker is visible
self.assertEqual(
self.get_css_value('#clockbox0', 'display'), 'block')
+ self.assertEqual(
+ [
+ x.text for x in
+ self.selenium.find_elements_by_xpath("//ul[@class='timelist']/li/a")
+ ],
+ ['Now', 'Midnight', '6 a.m.', 'Noon', '6 p.m.']
+ )
# Press the ESC key
self.selenium.find_element_by_tag_name('body').send_keys([Keys.ESCAPE])
# Check that the time picker is hidden again