on xenial help sign in
Update AP tests for new single preview

Approved by: Michał Sawicz, Unity8 CI Bot

commit5fa81846079b7bd2f4104b4b0700c3a91d97305d authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 10 Mar 2016, 22:40 (11 years ago) parent9ddf1864849c33
2 files changed+1−4
tests/autopilot/unity8/dash.py+1−2 tests/autopilot/unity8/shell/tests/test_helpers.py−2
tests/autopilot/unity8/dash.py+1−2
@@ -211,8 +211,7 @@ class GenericScopeView(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
211211 self.get_root_instance().select_single(
212212 objectName='processingIndicator').visible.wait_for(False)
213213 return preview_list.select_single(
214− Preview, objectName='preview{}'.format(
215− preview_list.initialIndex))
214+ Preview, objectName='preview')
216215
217216 @autopilot_logging.log_action(logger.debug)
218217 def click_scope_item(self, category, title, press_duration=0.10):
tests/autopilot/unity8/shell/tests/test_helpers.py−2
@@ -117,13 +117,11 @@ class GenericScopeViewHelperTestCase(tests.DashBaseTestCase):
117117 def test_open_preview(self):
118118 preview = self.generic_scope.open_preview('0', 'Title.0.0')
119119 self.assertIsInstance(preview, dash_helpers.Preview)
120− self.assertTrue(preview.isCurrent)
121120
122121 def test_open_preview_of_non_visible_item(self):
123122 """Open an item that requires swiping to make it visible."""
124123 preview = self.generic_scope.open_preview('2', 'Title.2.0')
125124 self.assertIsInstance(preview, dash_helpers.Preview)
126− self.assertTrue(preview.isCurrent)
127125
128126
129127class DashAppsHelperTestCase(tests.DashBaseTestCase):