@@ -110,6 +110,7 @@ class QQuickView(emulators.UnityEmulatorBase):
110 start_y = end_y = y + height // 2
110 start_y = end_y = y + height // 2
112 self.pointing_device.drag(start_x, start_y, end_x, end_y)
112 self.pointing_device.drag(start_x, start_y, end_x, end_y)
113+ self.get_current_focused_app_id().wait_for('unity8-dash')
114 def _get_shell(self):
115 def _get_shell(self):
115 return self.select_single('Shell')
116 return self.select_single('Shell')
@@ -123,6 +124,8 @@ class QQuickView(emulators.UnityEmulatorBase):
123 """Open the dash clicking the dash icon on the launcher."""
124 """Open the dash clicking the dash icon on the launcher."""
124 launcher = self.open_launcher()
125 launcher = self.open_launcher()
125 launcher.click_dash_icon()
126 launcher.click_dash_icon()
127+ self.get_current_focused_app_id().wait_for('unity8-dash')
128+ launcher.shown.wait_for(False)
127 @autopilot_logging.log_action(logger.info)
130 @autopilot_logging.log_action(logger.info)
128 def open_launcher(self):
131 def open_launcher(self):
@@ -146,6 +149,7 @@ class QQuickView(emulators.UnityEmulatorBase):
146 launcher = self.open_launcher()
149 launcher = self.open_launcher()
147 launcher.click_application_launcher_icon(application_name)
150 launcher.click_application_launcher_icon(application_name)
148 self.get_current_focused_app_id().wait_for(application_name)
151 self.get_current_focused_app_id().wait_for(application_name)
152+ launcher.shown.wait_for(False)
150 def enter_pin_code(self, code):
154 def enter_pin_code(self, code):
151 """Enter code 'code' into the single-pin lightdm pincode entry screen.
155 """Enter code 'code' into the single-pin lightdm pincode entry screen.