@@ -110,6 +110,7 @@ class QQuickView(emulators.UnityEmulatorBase):
110110 start_y = end_y = y + height // 2
111111
112112 self.pointing_device.drag(start_x, start_y, end_x, end_y)
113+ self.get_current_focused_app_id().wait_for('unity8-dash')
113114
114115 def _get_shell(self):
115116 return self.select_single('Shell')
@@ -123,6 +124,8 @@ class QQuickView(emulators.UnityEmulatorBase):
123124 """Open the dash clicking the dash icon on the launcher."""
124125 launcher = self.open_launcher()
125126 launcher.click_dash_icon()
127+ self.get_current_focused_app_id().wait_for('unity8-dash')
128+ launcher.shown.wait_for(False)
126129
127130 @autopilot_logging.log_action(logger.info)
128131 def open_launcher(self):
@@ -146,6 +149,7 @@ class QQuickView(emulators.UnityEmulatorBase):
146149 launcher = self.open_launcher()
147150 launcher.click_application_launcher_icon(application_name)
148151 self.get_current_focused_app_id().wait_for(application_name)
152+ launcher.shown.wait_for(False)
149153
150154 def enter_pin_code(self, code):
151155 """Enter code 'code' into the single-pin lightdm pincode entry screen.