on xenial help sign in
Reverted the change that returns application cards instead of titles.
commit239513514a09674846b7e451daaa30dbd61179df authorLeo Arias <leo.arias@canonical.com> dateWed 16 Apr 2014, 13:43 (13 years ago) parentfd0cfea24871a0
2 files changed+6−8
tests/autopilot/unity8/shell/emulators/dash.py+5−3 tests/autopilot/unity8/shell/tests/test_emulators.py+1−5
tests/autopilot/unity8/shell/emulators/dash.py+5−3
@@ -191,13 +191,15 @@ class DashApps(GenericScopeView):
191191
192192 """
193193 category_element = self._get_category_element(category)
194− application_tiles = category_element.select_many('Card')
194+ application_cards = category_element.select_many('Card')
195195 # TODO return them on the same order they are displayed.
196196 # --elopio - 2014-1-15
197197 result = []
198− for card in application_tiles:
198+ for card in application_cards:
199199 if card.objectName != 'cardToolCard':
200− result.append(card)
200+ card_header = card.select_single('CardHeader')
201+ result.append(card_header.title)
202+
201203 return result
202204
203205
tests/autopilot/unity8/shell/tests/test_emulators.py+1−5
@@ -190,14 +190,10 @@ class DashAppsEmulatorTestCase(DashBaseTestCase):
190190 :expected_apps_count]
191191
192192 applications = self.applications_scope.get_applications(category)
193− applications_titles = []
194− for application in applications:
195− cardHeader = application.select_single('CardHeader')
196− applications_titles.append(cardHeader.title)
197193
198194 self.assertThat(applications, HasLength(expected_apps_count))
199195 for expected in expected_applications:
200− self.assertThat(applications_titles, Contains(expected))
196+ self.assertThat(applications, Contains(expected))
201197
202198 def _get_number_of_application_slots(self, category):
203199 category_element = self.applications_scope._get_category_element(