on xenial help sign in
Check that the returned preview is the current one.
071ece5Leo Arias
tests/autopilot/unity8/shell/emulators/dash.py−1
@@ -178,7 +178,6 @@ class DashApps(emulators.UnityEmulatorBase):
178 # Some categories do not show previews, like recent apps.
178 # Some categories do not show previews, like recent apps.
179 # --elopio - 2014-1-14
179 # --elopio - 2014-1-14
180 self.pointing_device.click_object(icon)
180 self.pointing_device.click_object(icon)
181− import pdb; pdb.set_trace()
182 return self.get_root_instance().wait_select_single(AppPreview)
181 return self.get_root_instance().wait_select_single(AppPreview)
183
182
184
183
tests/autopilot/unity8/shell/tests/test_emulators.py+1
@@ -190,3 +190,4 @@ class DashAppsEmulatorTestCase(DashBaseTestCase):
190 def test_open_preview(self):
190 def test_open_preview(self):
191 preview = self.applications_scope.open_preview('installed', 'Title.1')
191 preview = self.applications_scope.open_preview('installed', 'Title.1')
192 self.assertIsInstance(preview, dash_emulators.AppPreview)
192 self.assertIsInstance(preview, dash_emulators.AppPreview)
193+ self.assertTrue(preview.isCurrent)