@@ -230,10 +230,11 @@ Item {
230230 // Make sure the notification really opened
231231 var notification = findChild(notifications, "notification" + (mockNotificationsModel.count - 1));
232232 verify(notification !== undefined && notification != null, "notification wasn't found");
233+ waitForRendering(notification);
233234
234235 // Make sure activeFocus went away from the app window
235236 tryCompare(app.session.surface, "activeFocus", false);
236− compare(stage.interactive, false, "the stage is interactive with a notification showing")
237+ tryCompare(stage, "interactive", false);
237238
238239 // Clicking the button should dismiss the notification and return focus
239240 var buttonAccept = findChild(notification, "notify_button0");