Make sure the height it's the height it will have
Otherwise it can happen that we go to the next test and height is still growing and then we try to flick/click on things that are no longer where we thought they were
commitfd45a520498d0be4ecd6c1457145b0f387894958
authorAlbert Astals Cid <albert.astals@canonical.com>
dateFri 13 Feb 2015, 12:17 (12 years ago)
parent23c05f9
tests/qmltests/Notifications/tst_Notifications.qml+1
@@ -563,6 +563,7 @@ Item {
563563 verify(notification !== undefined, "notification wasn't found");
564564
565565 waitForRendering(notification);
566+ tryCompare(notification, "height", notification.state === "contracted" ? units.gu(10) : notification.implicitHeight);
566567
567568 var icon = findChild(notification, "icon")
568569 var centeredIcon = findChild(notification, "centeredIcon")