on xenial help sign in
Fix the tests
commit2c2225f2807172917a04fc5069cc8cafb778a5e1 authorAlbert Astals <albert.astals@canonical.com> dateWed 26 Mar 2014, 17:38 (13 years ago) parent95ba078
1 file changed+5−1
tests/autopilot/unity8/shell/tests/test_emulators.py+5−1
tests/autopilot/unity8/shell/tests/test_emulators.py+5−1
@@ -185,7 +185,11 @@ class DashAppsEmulatorTestCase(DashBaseTestCase):
185185 category_element = self.applications_scope._get_category_element(
186186 category)
187187 grid = category_element.select_single('CardFilterGrid')
188− return grid.columns * grid.rows
188+ filtergrid = grid.select_single('FilterGrid')
189+ if (grid.filter):
190+ return filtergrid.collapsedRowCount * filtergrid.columns
191+ else:
192+ return filtergrid.uncollapsedRowCount * filtergrid.columns
189193
190194 def test_open_preview(self):
191195 preview = self.applications_scope.open_preview('2', 'Title.2.1')