Check that the returned preview is the current one.
commit071ece5d08c8d094b35a1ec20bb81e87e30648c5
authorLeo Arias <leo.arias@canonical.com>
dateWed 15 Jan 2014, 23:54 (13 years ago)
parent9797fbe
tests/autopilot/unity8/shell/emulators/dash.py−1
@@ -178,7 +178,6 @@ class DashApps(emulators.UnityEmulatorBase):
178178 # Some categories do not show previews, like recent apps.
179179 # --elopio - 2014-1-14
180180 self.pointing_device.click_object(icon)
181− import pdb; pdb.set_trace()
182181 return self.get_root_instance().wait_select_single(AppPreview)
183182
184183
tests/autopilot/unity8/shell/tests/test_emulators.py+1
@@ -190,3 +190,4 @@ class DashAppsEmulatorTestCase(DashBaseTestCase):
190190 def test_open_preview(self):
191191 preview = self.applications_scope.open_preview('installed', 'Title.1')
192192 self.assertIsInstance(preview, dash_emulators.AppPreview)
193+ self.assertTrue(preview.isCurrent)