on xenial help sign in
Test: Make sure the mouse area is enabled before clicking into it

Despite the name swipeToCloseEnabled controls the enabled property of the whole mouse area of the spread delegate so it needs to be true (animations & movement finished) before we can click on it

commit930600870e569987435460582e97fccc309a8848 authorAlbert Astals <albert.astals@canonical.com> dateFri 9 Jan 2015, 09:31 (12 years ago) parent7c02713
1 file changed+2
tests/qmltests/Stages/tst_PhoneStage.qml+2
tests/qmltests/Stages/tst_PhoneStage.qml+2
@@ -205,6 +205,7 @@ Item {
205205
206206 if (data.targetPhase == 2) {
207207 var app2 = findChild(spreadView, "appDelegate2");
208+ tryCompare(app2, "swipeToCloseEnabled", true);
208209 mouseClick(app2, units.gu(1), units.gu(1));
209210 }
210211
@@ -249,6 +250,7 @@ Item {
249250 }
250251
251252 console.log("clicking app", data.index, "(", appId, ")")
253+ tryCompare(tile, "swipeToCloseEnabled", true);
252254 mouseClick(spreadView, tile.mapToItem(spreadView).x + units.gu(1), spreadView.height / 2)
253255 tryCompare(ApplicationManager, "focusedApplicationId", appId);
254256 tryCompare(spreadView, "phase", 0);