diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopilot/unity/tests/test_hud.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/autopilot/unity/tests/test_hud.py b/tests/autopilot/unity/tests/test_hud.py index 01e9a2451..6a989387b 100644 --- a/tests/autopilot/unity/tests/test_hud.py +++ b/tests/autopilot/unity/tests/test_hud.py @@ -254,6 +254,15 @@ class HudBehaviorTests(HudTestsBase): self.keyboard.press_and_release("Alt+F4") self.assertThat(self.hud.visible, Eventually(Equals(False))) + def test_alt_f4_close_hud_with_capslock_on(self): + """Hud must close on Alt+F4 even when the capslock is turned on.""" + self.keyboard.press_and_release("Caps_Lock") + self.addCleanup(self.keyboard.press_and_release, "Caps_Lock") + + self.hud.ensure_visible() + self.keyboard.press_and_release("Alt+F4") + self.assertThat(self.hud.visible, Eventually(Equals(False))) + class HudLauncherInteractionsTests(HudTestsBase): |
