on xenial help sign in
Improve test reliability.
commitf7cdbb2e79d551d6a01915e3676cdaca05549d5a authorMichał Sawicz <michal.sawicz@canonical.com> dateTue 26 Aug 2014, 20:39 (12 years ago) parentae567d2
1 file changed+1−1
tests/qmltests/Dash/tst_GenericScopeView.qml+1−1
tests/qmltests/Dash/tst_GenericScopeView.qml+1−1
@@ -442,7 +442,7 @@ Item {
442442 expectFail("Apps", "Click scope should not have a favorite button");
443443 var favoriteAction = findChild(innerHeader, "favorite_header_button");
444444 verify(favoriteAction, "Could not find the favorite action.");
445− mouseClick(favoriteAction, 0, 0);
445+ mouseClick(favoriteAction, favoriteAction.width / 2, favoriteAction.height / 2);
446446
447447 tryCompare(genericScopeView.scope, "favorite", !data.favorite);
448448