@@ -29,12 +29,7 @@ Row {
2929 id: mockNotification
3030
3131 QtObject {
32−
33− signal actionInvoked()
34−
35− function invokeAction(actionId) {
36− actionInvoked()
37− }
32+ function invokeAction(actionId) { }
3833 }
3934 }
4035
@@ -290,7 +285,7 @@ Row {
290285
291286 SignalSpy {
292287 id: actionSpy
293− signalName: "actionInvoked"
288+ signalName: "clicked"
294289 }
295290
296291 function cleanup() {
@@ -321,7 +316,7 @@ Row {
321316 compare(interactiveArea.enabled, data.interactiveAreaEnabled, "check for interactive area")
322317
323318 if(data.interactiveAreaEnabled) {
324− actionSpy.target = notification
319+ actionSpy.target = findChild(notification, "interactiveArea")
325320 mouseClick(notification, notification.width / 2, notification.height / 2)
326321 actionSpy.wait()
327322 compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id for interactive action")
@@ -341,12 +336,13 @@ Row {
341336 var buttonAccept = findChild(buttonRow, "button0")
342337
343338 waitForRendering(notification)
344− actionSpy.target = notification
339+ actionSpy.target = buttonCancel
345340 mouseClick(buttonCancel, buttonCancel.width / 2, buttonCancel.height / 2)
346341 actionSpy.wait()
347342 compare(actionSpy.signalArguments[0][0], data.actions[1]["id"], "got wrong id for negative action")
348343 actionSpy.clear()
349344
345+ actionSpy.target = buttonAccept
350346 mouseClick(buttonAccept, buttonAccept.width / 2, buttonAccept.height / 2)
351347 actionSpy.wait()
352348 compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id positive action")