summaryrefslogtreecommitdiff
path: root/tests
diff options
authorOmer Akram <om26er@ubuntu.com>2012-08-24 04:15:51 +0500
committerOmer Akram <om26er@ubuntu.com>2012-08-24 04:15:51 +0500
commit9e49e875d857e04acb3ae5b8a03dfd53e71c4a43 (patch)
treed96eb9e16318d433e258d14ab1fd8ef018b9fde0 /tests
parent6d30611c3e8cd843ac1c69e98da4409796e6d004 (diff)
manual-test to AP; makes sure HUD keynav is intact
(bzr r2616.5.1)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/unity/tests/test_hud.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/autopilot/unity/tests/test_hud.py b/tests/autopilot/unity/tests/test_hud.py
index 58ec70150..f682768b3 100644
--- a/tests/autopilot/unity/tests/test_hud.py
+++ b/tests/autopilot/unity/tests/test_hud.py
@@ -304,6 +304,31 @@ class HudBehaviorTests(HudTestsBase):
self.assertThat(file_contents, Equals('ABCD'))
+ def test_hud_key_navigation(self):
+ """This test ensures the hud key navigation is intact"""
+ # starting on a clean desktop because this way we are sure that our search
+ # string won't match any menu item from a focused application
+ self.window_manager.enter_show_desktop()
+ self.addCleanup(self.window_manager.leave_show_desktop)
+
+ self.hud.ensure_visible()
+
+ self.keyboard.type("settings")
+ self.assertThat(self.hud.search_string, Eventually(Equals("settings")))
+
+ self.keyboard.press_and_release('Down')
+ self.assertThat(self.hud.selected_button, Eventually(Equals(2)))
+ self.keyboard.press_and_release('Down')
+ self.assertThat(self.hud.selected_button, Eventually(Equals(3)))
+ self.keyboard.press_and_release('Enter')
+
+ # We are atleast sure that searching for "settings" on the desktop
+ # will reveal one of the settings panel of gnome control center.
+ self.addCleanup(self.close_all_app, "System Settings")
+
+ self.assertThat(self.hud.visible, Eventually(Equals(False)))
+
+
class HudLauncherInteractionsTests(HudTestsBase):
launcher_modes = [('Launcher autohide', {'launcher_autohide': False}),