on xenial help sign in
Make these tests pass with the new SDK

Changes: click not in the middle since that happens to be a button so not useful for testing fall though clicks waiting for rendering before pressing a button I'm going to go with the guess that since some stuff changed speed at being created we need to adjust these

commit9ef79d3d0b0f67f07c05ed86ffb76dbced5ee2e2 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 1 Mar 2016, 11:58 (11 years ago) parent57f68ef
2 files changed+2−1
tests/qmltests/Notifications/tst_OptionToggle.qml+1−1 tests/qmltests/Notifications/tst_VisualSnapDecisionsQueue.qml+1
tests/qmltests/Notifications/tst_OptionToggle.qml+1−1
@@ -225,7 +225,7 @@ Row {
225225 }
226226
227227 // test input does not fall through
228− mouseClick(notification)
228+ mouseClick(notification, units.gu(2), units.gu(2))
229229 if(data.type == Notification.Interactive) {
230230 actionSpy.wait()
231231 compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id for interactive action")
tests/qmltests/Notifications/tst_VisualSnapDecisionsQueue.qml+1
@@ -226,6 +226,7 @@ Row {
226226
227227 // remove top-most and verify one of the remaining ones is still getting expanded
228228
229+ waitForRendering(notifications);
229230 // make first snap-decision expand
230231 mouseClick(snap_decision[0]);
231232