on xenial help sign in
Add wait_ makes tests more reliable

commit6d260975eed12f7d2be463d35a46a1b3d952d017 authorAlbert Astals <albert.astals@canonical.com> dateMon 6 Oct 2014, 08:02 (12 years ago) parent30a975c4ca7837
1 file changed+2−2
tests/autopilot/unity8/shell/emulators/dash.py+2−2
tests/autopilot/unity8/shell/emulators/dash.py+2−2
@@ -66,7 +66,7 @@ class Dash(emulators.UnityEmulatorBase):
6666 return resp_grid.select_single('Tile', text=text)
6767
6868 def get_scope(self, scope_name='clickscope'):
69− return self.dash_content_list.select_single(
69+ return self.dash_content_list.wait_select_single(
7070 'QQuickLoader', scopeId=scope_name)
7171
7272 @autopilot_logging.log_action(logger.info)
@@ -86,7 +86,7 @@ class Dash(emulators.UnityEmulatorBase):
8686
8787 def _get_scope_loader(self, scope_id):
8888 try:
89− return self.dash_content_list.select_single(
89+ return self.dash_content_list.wait_select_single(
9090 'QQuickLoader', scopeId=scope_id)
9191 except dbus.StateNotFoundError:
9292 raise emulators.UnityEmulatorException(