diff options
| author | Ćukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> | 2013-05-18 00:34:28 +0000 |
|---|---|---|
| committer | Tarmac <> | 2013-05-18 00:34:28 +0000 |
| commit | 0759f0c3e81bdee2e75e12a4467fc06b6d81f61c (patch) | |
| tree | 22742e23f930773b0fc832ca42e7af466212b167 | |
| parent | 1c2dab59b753ad016ff99cb5a9610860590028a7 (diff) | |
| parent | c23b98d039fea71884b3ed4b928f6666747e1427 (diff) | |
Fix two HUD failures related to HUD slow action activation.
Approved by PS Jenkins bot, Brandon Schaefer, Mathieu Trudel-Lapierre. (bzr r3327)
| -rw-r--r-- | tests/autopilot/unity/tests/test_hud.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/autopilot/unity/tests/test_hud.py b/tests/autopilot/unity/tests/test_hud.py index af889c964..383b9dc55 100644 --- a/tests/autopilot/unity/tests/test_hud.py +++ b/tests/autopilot/unity/tests/test_hud.py @@ -212,14 +212,15 @@ class HudBehaviorTests(HudTestsBase): self.keyboard.type("undo") hud_query_check = lambda: self.unity.hud.selected_hud_button.label_no_formatting - # XXX: with the new HUD, command and description is separated by '\u2002' and - # not a regular space ' '. Is that correct? (LP: #1172237) self.assertThat(hud_query_check, Eventually(Equals(u'Undo\u2002(Edit)'))) self.keyboard.press_and_release('Return') self.assertThat(self.unity.hud.visible, Eventually(Equals(False))) self.assertProperty(gedit_win, is_focused=True) + # XXX: Because of LP: #1180903, we need to give HUD some time after activating + # any entry, because it takes some time + sleep(1.5) self.keyboard.press_and_release("Ctrl+s") self.assertThat(lambda: exists(file_path), Eventually(Equals(True))) @@ -330,7 +331,8 @@ class HudBehaviorTests(HudTestsBase): self.keyboard.press_and_release("Enter") - self.assertFalse(self.process_manager.app_is_running("Text Editor")) + is_running = lambda: self.process_manager.app_is_running("Text Editor") + self.assertThat(is_running, Eventually(Equals(False))) self.assertThat(self.unity.hud.visible, Eventually(Equals(False))) |
