on xenial help sign in
Unlock using the process helper, to get retries.
216c5e3Leo Arias
tests/autopilot/unity8/shell/tests/test_emulators.py+3−2
@@ -19,6 +19,7 @@
19
19
20import mock
20import mock
21
21
22+from unity8 import process_helpers
22from unity8.shell import emulators, tests
23from unity8.shell import emulators, tests
23from unity8.shell.emulators import dash as dash_emulators
24from unity8.shell.emulators import dash as dash_emulators
24
25
@@ -29,8 +30,8 @@ class DashEmulatorTestCase(tests.UnityTestCase):
29
30
30 def setUp(self):
31 def setUp(self):
31 super(DashEmulatorTestCase, self).setUp()
32 super(DashEmulatorTestCase, self).setUp()
32− self.launch_unity()
33+ unity_proxy = self.launch_unity()
33− self.main_window.get_greeter().swipe()
34+ process_helpers.unlock_unity(unity_proxy)
34 self.dash = self.main_window.get_dash()
35 self.dash = self.main_window.get_dash()
35
36
36 def test_open_unexisting_scope(self):
37 def test_open_unexisting_scope(self):