on xenial help sign in
Make sure a click on the button with ok_id does trigger the notification to be removed from the model. Why the button in question reports a size of 0x0 and thus mouseClick() fails is currently beyond me.
4bf0d3dMirco Müller
tests/qmltests/tst_Shell.qml+2−3
@@ -101,9 +101,8 @@ Item {
101 id: mockNotificationsModel
101 id: mockNotificationsModel
102
102
103 onActionInvoked: {
103 onActionInvoked: {
104− print("from qml - action invoked")
105− if(actionId == "ok_id") {
104+ if(action == "ok_id") {
106− mockNotificationsModel.clear()
105+ mockNotificationsModel.remove(1)
107 }
106 }
108 }
107 }
109 }
108 }