on xenial help sign in
add more waitForRendering
636ade5Michael Zanetti
tests/qmltests/tst_Shell.qml+2−1
@@ -230,10 +230,11 @@ Item {
230 // Make sure the notification really opened
230 // Make sure the notification really opened
231 var notification = findChild(notifications, "notification" + (mockNotificationsModel.count - 1));
231 var notification = findChild(notifications, "notification" + (mockNotificationsModel.count - 1));
232 verify(notification !== undefined && notification != null, "notification wasn't found");
232 verify(notification !== undefined && notification != null, "notification wasn't found");
233+ waitForRendering(notification);
233
234
234 // Make sure activeFocus went away from the app window
235 // Make sure activeFocus went away from the app window
235 tryCompare(app.session.surface, "activeFocus", false);
236 tryCompare(app.session.surface, "activeFocus", false);
236− compare(stage.interactive, false, "the stage is interactive with a notification showing")
237+ tryCompare(stage, "interactive", false);
237
238
238 // Clicking the button should dismiss the notification and return focus
239 // Clicking the button should dismiss the notification and return focus
239 var buttonAccept = findChild(notification, "notify_button0");
240 var buttonAccept = findChild(notification, "notify_button0");