on xenial help sign in
there's a see less button now
commitac97f3bbaf92f445c0945b08642160fa5cf99040 authorAlbert Astals <albert.astals@canonical.com> dateWed 6 Aug 2014, 12:23 (12 years ago) parentd9e40a4
1 file changed+4−3
tests/qmltests/Dash/tst_GenericScopeView.qml+4−3
tests/qmltests/Dash/tst_GenericScopeView.qml+4−3
@@ -207,11 +207,12 @@ Item {
207207 shell.width = units.gu(20)
208208 var categoryListView = findChild(genericScopeView, "categoryListView");
209209 categoryListView.contentY = units.gu(20);
210− var seeAll = findChild(category, "seeAll")
210+ var seeAll = findChild(category, "seeAll");
211+ var floatingSeeLess = findChild(genericScopeView, "floatingSeeLess");
211212 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
212213 tryCompare(category, "expanded", true);
213− tryCompareFunction(function() { return category.item.height == genericScopeView.height - category.item.displayMarginBeginning - category.item.displayMarginEnd; }, true);
214− mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
214+ tryCompareFunction(function() { return category.item.height + floatingSeeLess.height == genericScopeView.height - category.item.displayMarginBeginning - category.item.displayMarginEnd; }, true);
215+ mouseClick(floatingSeeLess, floatingSeeLess.width / 2, floatingSeeLess.height / 2);
215216 tryCompare(category, "expanded", false);
216217 }
217218