on xenial help sign in
Wait for the button to stop moving before clicking on it
985e77dAlbert Astals
tests/qmltests/Dash/tst_GenericScopeView.qml+1−1
@@ -129,7 +129,7 @@ Item {
129 var initialHeight = category.height;
129 var initialHeight = category.height;
130 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
130 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
131 verify(category.expanded);
131 verify(category.expanded);
132− tryCompareFunction(function() { return category.height > initialHeight; }, true);
132+ tryCompare(category, "height", category.item.expandedHeight + seeAll.height);
133
133
134 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
134 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
135 verify(!category.expanded);
135 verify(!category.expanded);