summaryrefslogtreecommitdiff
path: root/tests
diff options
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/autopilot/tests/test_hud.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/autopilot/autopilot/tests/test_hud.py b/tests/autopilot/autopilot/tests/test_hud.py
index 88d0a3044..2517fcb9e 100644
--- a/tests/autopilot/autopilot/tests/test_hud.py
+++ b/tests/autopilot/autopilot/tests/test_hud.py
@@ -442,6 +442,21 @@ class HudVisualTests(HudTestsBase):
self.hud.ensure_visible()
self.assertThat(self.hud.icon.icon_name, Eventually(Equals(calc.icon)))
+ def test_dash_hud_only_uses_icon_from_current_desktop(self):
+ """
+ Switching from the dash to Hud must pick an icon from applications
+ from the current desktop. As the Hud must go through the entire window
+ stack to find the top most window.
+ """
+ self.workspace.switch_to(0)
+ calc = self.start_app("Calculator")
+ self.assertTrue(calc.is_active)
+ self.workspace.switch_to(2)
+ self.dash.ensure_visible()
+ self.hud.ensure_visible()
+
+ self.assertThat(self.hud.icon.icon_name, Eventually(EndsWith("launcher_bfb.png")))
+
class HudAlternativeKeybindingTests(HudTestsBase):