on xenial help sign in
add more waitForRendering
commit636ade55d3444dc0cd527750a1d6db9ba50daae5 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 14 Oct 2014, 18:22 (12 years ago) parent4165967
1 file changed+2−1
tests/qmltests/tst_Shell.qml+2−1
tests/qmltests/tst_Shell.qml+2−1
@@ -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");