summaryrefslogtreecommitdiff
path: root/tests/autopilot
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2012-07-11 17:40:49 -0400
committerTarmac <>2012-07-11 17:40:49 -0400
commitfacebb907c9ae48a0be3be2baa10ad6b894b5f3e (patch)
tree8980fde1af9ef6c02354581b992cbe52b15b72db /tests/autopilot
parent35f3cc393f864281bb28f7570144f1f780f2633e (diff)
parenta985c592c4858e927135b3b32846e5e6de6aa533 (diff)
Quicklist closes when opening the Dash.. Fixes: https://bugs.launchpad.net/bugs/913994. Approved by Thomi Richards.
(bzr r2496)
Diffstat (limited to 'tests/autopilot')
-rw-r--r--tests/autopilot/unity/tests/test_quicklist.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/autopilot/unity/tests/test_quicklist.py b/tests/autopilot/unity/tests/test_quicklist.py
index 6cbdcd570..b332cf82f 100644
--- a/tests/autopilot/unity/tests/test_quicklist.py
+++ b/tests/autopilot/unity/tests/test_quicklist.py
@@ -137,13 +137,24 @@ class QuicklistActionTests(UnityTestCase):
"""When a quicklist is open you must still be able to open the Hud."""
calc = self.start_app("Calculator")
- calc_icon = self.launcher.model.get_icon_by_desktop_id(calc.desktop_file)
+ calc_icon = self.launcher.model.get_icon(desktop_id=calc.desktop_file)
calc_ql = self.open_quicklist_for_icon(calc_icon)
self.hud.ensure_visible()
self.addCleanup(self.hud.ensure_hidden)
self.assertThat(self.hud.visible, Eventually(Equals(True)))
+ def test_quicklist_closes_when_dash_opens(self):
+ """When the quicklist is open you must still be able to open the dash."""
+ calc = self.start_app("Calculator")
+
+ calc_icon = self.launcher.model.get_icon(desktop_id=calc.desktop_file)
+ calc_ql = self.open_quicklist_for_icon(calc_icon)
+
+ self.dash.ensure_visible()
+ self.addCleanup(self.dash.ensure_hidden)
+ self.assertThat(self.dash.visible, Eventually(Equals(True)))
+
class QuicklistKeyNavigationTests(UnityTestCase):
"""Tests for the quicklist key navigation."""