mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #25006 -- Added a '6 p.m.' option to the admin's time picker.
This commit is contained in:
parent
e7b4bd48c7
commit
7f155a0703
3 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue