on xenial help sign in
Fix autopilot tests
0b55bb9Michael Terry
tests/autopilot/unity8/shell/emulators/greeter.py+2−1
@@ -28,6 +28,7 @@ class Greeter(UnityEmulatorBase):
28 def swipe(self):
28 def swipe(self):
29 """Swipe the greeter screen away."""
29 """Swipe the greeter screen away."""
30 self.created.wait_for(True)
30 self.created.wait_for(True)
31+ self.showProgress.wait_for(1)
31
32
32 rect = self.globalRect
33 rect = self.globalRect
33 start_x = rect[0] + rect[2] - 3
34 start_x = rect[0] + rect[2] - 3
@@ -36,7 +37,7 @@ class Greeter(UnityEmulatorBase):
36 stop_y = start_y
37 stop_y = start_y
37 self.pointing_device.drag(start_x, start_y, stop_x, stop_y)
38 self.pointing_device.drag(start_x, start_y, stop_x, stop_y)
38
39
39− self.created.wait_for(False)
40+ self.showProgress.wait_for(0)
40
41
41 def get_prompt(self):
42 def get_prompt(self):
42 return self.select_single(
43 return self.select_single(