summaryrefslogtreecommitdiff
path: root/tests
diff options
authorThomi Richards <thomi.richards@canonical.com>2012-07-05 17:26:59 +1200
committerThomi Richards <thomi.richards@canonical.com>2012-07-05 17:26:59 +1200
commitdf03f394b0d17262dcc4c046c557be4211721147 (patch)
treeb57daab7396786fb7cbea049e8b0a5f313d9e674 /tests
parenta06e25bec7afe4fc8e5d9fd42bd3cf54d5dd3e1e (diff)
test_menus_dont_show_with_dash test uses Eventually matcher.
(bzr r2470.5.42)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/unity/tests/test_panel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/autopilot/unity/tests/test_panel.py b/tests/autopilot/unity/tests/test_panel.py
index 1e0cfb43a..afd272f6f 100644
--- a/tests/autopilot/unity/tests/test_panel.py
+++ b/tests/autopilot/unity/tests/test_panel.py
@@ -872,11 +872,11 @@ class PanelMenuTests(PanelTestsBase):
def test_menus_dont_show_with_dash(self):
"""Tests that menus are not showing when opening the dash."""
+ self.open_new_application_window("Text Editor", maximized=True)
self.dash.ensure_visible()
self.addCleanup(self.dash.ensure_hidden)
- sleep(1)
- self.assertFalse(self.panel.menus_shown)
+ self.assertThat(self.panel.menus_shown, Eventually(Equals(False)))
def test_menus_dont_show_with_hud(self):
"""Tests that menus are not showing when opening the HUD."""