on xenial help sign in
revert some changes in AP which are not required any more
commit6aac81674fc127a7ec67f68445e4a6e65aa3f45c authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 28 Mar 2014, 16:20 (13 years ago) parent8ed8c76
2 files changed+2−9
tests/autopilot/unity8/shell/emulators/dash.py+1−9 tests/autopilot/unity8/shell/tests/test_emulators.py+1
tests/autopilot/unity8/shell/emulators/dash.py+1−9
@@ -161,7 +161,7 @@ class GenericScopeView(emulators.UnityEmulatorBase):
161161 raise emulators.UnityEmulatorException(
162162 'No category found with name {}'.format(category))
163163
164−class DashApps(emulators.UnityEmulatorBase):
164+class DashApps(GenericScopeView):
165165 def get_applications(self, category):
166166 """Return the list of applications on a category.
167167
@@ -177,11 +177,3 @@ class DashApps(emulators.UnityEmulatorBase):
177177 if card.objectName != 'cardToolCard':
178178 result.append(card)
179179 return result
180−
181− def _get_category_element(self, category):
182− try:
183− return self.wait_select_single(
184− 'Base', objectName='dashCategory{}'.format(category))
185− except dbus.StateNotFoundError:
186− raise emulators.UnityEmulatorException(
187− 'No category found with name {}'.format(category))
tests/autopilot/unity8/shell/tests/test_emulators.py+1
@@ -128,6 +128,7 @@ class DashEmulatorTestCase(DashBaseTestCase):
128128 scope_id = 'clickscope'
129129 scope = self.dash.open_scope(scope_id)
130130 self._assert_scope_is_opened(scope, scope_id)
131+ self.assertIsInstance(scope, dash_emulators.DashApps)
131132
132133
133134class GenericScopeViewEmulatorTestCase(DashBaseTestCase):