From 7f155a07032caf916518beca5b33fa5a90300209 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 20 Jun 2015 19:47:15 -0400 Subject: Refs #25006 -- Added a '6 p.m.' option to the admin's time picker. --- tests/admin_widgets/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/admin_widgets') 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 -- cgit v1.3