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.
commit4bf0d3d7d96052d9530aa29188f5cbdd1ba4a17a authorMirco Müller <mirco.mueller@ubuntu.com> dateFri 23 Jan 2015, 15:05 (12 years ago) parent1c345cf
1 file changed+2−3
tests/qmltests/tst_Shell.qml+2−3
tests/qmltests/tst_Shell.qml+2−3
@@ -101,9 +101,8 @@ Item {
101101 id: mockNotificationsModel
102102
103103 onActionInvoked: {
104− print("from qml - action invoked")
105− if(actionId == "ok_id") {
106− mockNotificationsModel.clear()
104+ if(action == "ok_id") {
105+ mockNotificationsModel.remove(1)
107106 }
108107 }
109108 }