on xenial help sign in
Make sure all rendering operations are completed before doing the swipe-dismiss-checks, thus the tests also pass on very slow (jenkins) systems.
commitc318def67648cc9702a9a83698cffbb1f097c516 authorMirco Müller <mirco.mueller@canonical.com> dateFri 6 Feb 2015, 16:15 (12 years ago) parent8f61a81
1 file changed+1
tests/qmltests/Notifications/tst_Notifications.qml+1
tests/qmltests/Notifications/tst_Notifications.qml+1
@@ -654,6 +654,7 @@ Item {
654654 }
655655
656656 // swipe-to-dismiss check
657+ waitForRendering(notification)
657658 var before = mockModel.count
658659 var dragStart = notification.width * 0.25;
659660 var dragEnd = notification.width;