on xenial help sign in
Fix the ap test for applications.

Approved by: Albert Astals Cid

commit254304c44350cd024fdb063eb526d7d0c1ff457b authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 25 Jul 2014, 10:47 (12 years ago) parentc1f6f41aec2551
1 file changed+2−2
tests/autopilot/unity8/shell/emulators/dash.py+2−2
tests/autopilot/unity8/shell/emulators/dash.py+2−2
@@ -199,12 +199,12 @@ class DashApps(GenericScopeView):
199199
200200 """
201201 category_element = self._get_category_element(category)
202+ see_all = category_element.select_single(objectName='seeAll')
202203 application_cards = category_element.select_many('AbstractButton')
203204
204205 application_cards = sorted(
205206 (card for card in application_cards
206− if card.globalRect.y
207− < category_element.globalRect.y + category_element.height),
207+ if card.globalRect.y < see_all.globalRect.y),
208208 key=lambda card: (card.globalRect.y, card.globalRect.x))
209209
210210 result = []