on xenial help sign in
there's a see less button now
ac97f3bAlbert Astals
tests/qmltests/Dash/tst_GenericScopeView.qml+4−3
@@ -207,11 +207,12 @@ Item {
207 shell.width = units.gu(20)
207 shell.width = units.gu(20)
208 var categoryListView = findChild(genericScopeView, "categoryListView");
208 var categoryListView = findChild(genericScopeView, "categoryListView");
209 categoryListView.contentY = units.gu(20);
209 categoryListView.contentY = units.gu(20);
210− var seeAll = findChild(category, "seeAll")
210+ var seeAll = findChild(category, "seeAll");
211+ var floatingSeeLess = findChild(genericScopeView, "floatingSeeLess");
211 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
212 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
212 tryCompare(category, "expanded", true);
213 tryCompare(category, "expanded", true);
213− tryCompareFunction(function() { return category.item.height == genericScopeView.height - category.item.displayMarginBeginning - category.item.displayMarginEnd; }, true);
214+ tryCompareFunction(function() { return category.item.height + floatingSeeLess.height == genericScopeView.height - category.item.displayMarginBeginning - category.item.displayMarginEnd; }, true);
214− mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
215+ mouseClick(floatingSeeLess, floatingSeeLess.width / 2, floatingSeeLess.height / 2);
215 tryCompare(category, "expanded", false);
216 tryCompare(category, "expanded", false);
216 }
217 }
217
218