@@ -30,7 +30,7 @@ Row {
3030
3131 QtObject {
3232 function invokeAction(actionId) {
33− mockModel.actionId = actionId
33+ mockModel.actionInvoked(actionId)
3434 }
3535 }
3636 }
@@ -38,7 +38,7 @@ Row {
3838 ListModel {
3939 id: mockModel
4040
41− property string actionId
41+ signal actionInvoked(string actionId)
4242
4343 function getRaw(id) {
4444 return mockNotification.createObject(mockModel)
@@ -289,7 +289,9 @@ Row {
289289
290290 SignalSpy {
291291 id: actionSpy
292− signalName: "clicked"
292+
293+ target: mockModel
294+ signalName: "actionInvoked"
293295 }
294296
295297 function cleanup() {
@@ -320,10 +322,9 @@ Row {
320322 compare(interactiveArea.enabled, data.interactiveAreaEnabled, "check for interactive area")
321323
322324 if(data.interactiveAreaEnabled) {
323− actionSpy.target = findChild(notification, "interactiveArea")
324325 mouseClick(notification, notification.width / 2, notification.height / 2)
325326 actionSpy.wait()
326− compare(mockModel.actionId, data.actions[0]["id"], "got wrong id for interactive action")
327+ compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id for interactive action")
327328 compare(clickThroughSpy.count, 0, "click on interactive notification fell through")
328329 } else {
329330 mouseClick(notification, notification.width / 2, notification.height / 2)
@@ -340,16 +341,15 @@ Row {
340341 var buttonAccept = findChild(buttonRow, "button0")
341342
342343 waitForRendering(notification)
343− actionSpy.target = buttonCancel
344344 mouseClick(buttonCancel, buttonCancel.width / 2, buttonCancel.height / 2)
345345 actionSpy.wait()
346− compare(mockModel.actionId, data.actions[1]["id"], "got wrong id for negative action")
346+ compare(actionSpy.signalArguments[0][0], data.actions[1]["id"], "got wrong id for negative action")
347347 actionSpy.clear()
348348
349− actionSpy.target = buttonAccept
350349 mouseClick(buttonAccept, buttonAccept.width / 2, buttonAccept.height / 2)
351350 actionSpy.wait()
352− compare(mockModel.actionId, data.actions[0]["id"], "got wrong id positive action")
351+ compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id positive action")
352+ actionSpy.clear()
353353 }
354354 }
355355 }