on xenial help sign in
Wait for the button to stop moving before clicking on it
commit985e77dab3ff42273614f34987a38f109280eae8 authorAlbert Astals <albert.astals@canonical.com> dateWed 6 Aug 2014, 11:21 (12 years ago) parent5b5d46b
1 file changed+1−1
tests/qmltests/Dash/tst_GenericScopeView.qml+1−1
tests/qmltests/Dash/tst_GenericScopeView.qml+1−1
@@ -129,7 +129,7 @@ Item {
129129 var initialHeight = category.height;
130130 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
131131 verify(category.expanded);
132− tryCompareFunction(function() { return category.height > initialHeight; }, true);
132+ tryCompare(category, "height", category.item.expandedHeight + seeAll.height);
133133
134134 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
135135 verify(!category.expanded);