on xenial help sign in
try to stabilize the QML tests in CI
commit026389c584986e139a09cae0ade084c8a7e12fea authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 12 Apr 2016, 15:01 (11 years ago) parentf59e405
1 file changed+2−5
tests/qmltests/Notifications/tst_Notifications.qml+2−5
tests/qmltests/Notifications/tst_Notifications.qml+2−5
@@ -682,11 +682,7 @@ Item {
682682 var dragY = notification.height / 2;
683683 touchFlick(notification, dragStart, dragY, dragEnd, dragY)
684684 waitForRendering(notification)
685− if ((data.n.type === Notification.SnapDecision && notification.state === "expanded") || data.n.type === Notification.Confirmation) {
686− tryCompare(mockModel, "count", before)
687− } else {
688− tryCompare(mockModel, "count", before - 1)
689− }
685+ tryCompare(mockModel, "count", before - 1)
690686 }
691687
692688 function test_closeButton_data() { // reuse the data
@@ -715,6 +711,7 @@ Item {
715711 tryCompare(closeButton, "visible", true);
716712 var before = mockModel.count;
717713 mouseClick(closeButton);
714+ waitForRendering(notification);
718715
719716 // closing the notification, the model count should be one less
720717 tryCompare(mockModel, "count", before - 1)