summaryrefslogtreecommitdiff
path: root/tests/autopilot
diff options
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2015-10-16 08:45:50 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-10-16 08:45:50 +0000
commitf4633e5c51f2e1620a533b2c6b2f7c3a1a83d7b6 (patch)
tree8102f8a4c9823e12ce5c09a04c7a31f3c2e8dcca /tests/autopilot
parentf0ec717da2c30b5bfbee99d6b6f60f4154f18567 (diff)
parent70dd0ea470cc4d742d07f0e68ea86c6c621b48fc (diff)
TestDash: Use local results in PreviewNavigateTests instead of online ones
They're just more reliable Approved by: Andrea Azzarone (bzr r4021)
Diffstat (limited to 'tests/autopilot')
-rw-r--r--tests/autopilot/unity/tests/test_dash.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/autopilot/unity/tests/test_dash.py b/tests/autopilot/unity/tests/test_dash.py
index 26fb000f7..606144b8e 100644
--- a/tests/autopilot/unity/tests/test_dash.py
+++ b/tests/autopilot/unity/tests/test_dash.py
@@ -983,8 +983,8 @@ class PreviewInvocationTests(DashTestCase):
scope = self.unity.dash.reveal_application_scope()
self.addCleanup(self.unity.dash.ensure_hidden)
- # wait for "More suggestions" category
- category = self.wait_for_category(scope, _("More suggestions"))
+ # wait for "Installed" category
+ category = self.wait_for_category(scope, _("Installed"))
# wait for results
self.assertThat(lambda: len(category.get_results()), Eventually(GreaterThan(0), timeout=20))
@@ -1006,15 +1006,15 @@ class PreviewNavigateTests(DashTestCase):
scope = self.unity.dash.reveal_application_scope()
self.addCleanup(self.unity.dash.ensure_hidden)
- # wait for "More suggestions" category
- category = self.wait_for_category(scope, _("More suggestions"))
+ # wait for "Installed" category
+ category = self.wait_for_category(scope, _("Installed"))
# wait for results (we need 4 results to perorm the multi-navigation tests)
self.assertThat(lambda: len(category.get_results()), Eventually(GreaterThan(4), timeout=20))
results = category.get_results()
- result = results[2] # 2 so we can navigate left
- result.preview()
+ result = results[3] # 3 so we can navigate left multiple times
+ result.preview(button=3)
self.assertThat(self.unity.dash.view.preview_displaying, Eventually(Equals(True)))
self.assertThat(self.unity.dash.view.get_preview_container, Eventually(NotEquals(None)))