mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Fixed #20821 -- Added tooltips to Admin SelectBox widget
The Admin widget, which can be used to filter multiple selects can sometimes be too narrow and hide information such as user permissions. This commit adds tooltips to the select options so that a user can hover over and see the hidden text.
This commit is contained in:
parent
32838a5beb
commit
c438cc2a36
2 changed files with 14 additions and 2 deletions
|
@ -699,7 +699,12 @@ class HorizontalVerticalFilterSeleniumFirefoxTests(AdminSeleniumWebDriverTestCas
|
|||
self.assertActiveButtons(mode, field_name, False, False, True, False)
|
||||
|
||||
# Choose some options ------------------------------------------------
|
||||
self.get_select_option(from_box, str(self.lisa.id)).click()
|
||||
from_lisa_select_option = self.get_select_option(from_box, str(self.lisa.id))
|
||||
|
||||
# Check the title attribute is there for tool tips: ticket #20821
|
||||
self.assertEqual(from_lisa_select_option.get_attribute('title'), from_lisa_select_option.get_attribute('text'))
|
||||
|
||||
from_lisa_select_option.click()
|
||||
self.get_select_option(from_box, str(self.jason.id)).click()
|
||||
self.get_select_option(from_box, str(self.bob.id)).click()
|
||||
self.get_select_option(from_box, str(self.john.id)).click()
|
||||
|
@ -714,6 +719,10 @@ class HorizontalVerticalFilterSeleniumFirefoxTests(AdminSeleniumWebDriverTestCas
|
|||
[str(self.lisa.id), str(self.bob.id),
|
||||
str(self.jason.id), str(self.john.id)])
|
||||
|
||||
# Check the tooltip is still there after moving: ticket #20821
|
||||
to_lisa_select_option = self.get_select_option(to_box, str(self.lisa.id))
|
||||
self.assertEqual(to_lisa_select_option.get_attribute('title'), to_lisa_select_option.get_attribute('text'))
|
||||
|
||||
# Remove some options -------------------------------------------------
|
||||
self.get_select_option(to_box, str(self.lisa.id)).click()
|
||||
self.get_select_option(to_box, str(self.bob.id)).click()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue