diff options
| author | Julien Phalip <jphalip@gmail.com> | 2013-09-06 14:03:58 -0700 |
|---|---|---|
| committer | Julien Phalip <jphalip@gmail.com> | 2013-09-06 14:03:58 -0700 |
| commit | d5df914fe14fd96cec1cd3465852b8da72e7c5f6 (patch) | |
| tree | 59ab27c67a837c747f65f71bb5548416143b9223 /tests | |
| parent | ce5e09353d4ac3bda10f95e1cc8e609b0b397fdc (diff) | |
| parent | c438cc2a3653644ea42987f7e65f6f638ca85f6c (diff) | |
Merge pull request #1578 from rmutter/ticket_20821
Fixed #20821 -- Added tooltips to Admin SelectBox widget
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/admin_widgets/tests.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index 7d2f70f69b..0aa6129295 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -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() |
