@@ -536,11 +536,12 @@ Item {
536 if(data.hasSwipeToAct) {
536 if(data.hasSwipeToAct) {
537 var swipeButton = findChild(buttonRow, "notify_swipe_button")
537 var swipeButton = findChild(buttonRow, "notify_swipe_button")
538 var slider = findChild(swipeButton, "slider")
538 var slider = findChild(swipeButton, "slider")
539− var x = slider.x + slider.width / 2
539+ var swipeMouseArea = findChild(buttonRow, "swipeMouseArea")
540+ var x = swipeMouseArea.width / 2
540− var y = slider.y + slider.height / 2
541+ var y = swipeMouseArea.height / 2
541− mousePress(slider, x, y)
542+ mousePress(swipeMouseArea, x, y, Qt.LeftButton, Qt.NoModifier, 0)
542− mouseMove(slider, x + units.gu(15), y)
543+ mouseMove(swipeMouseArea, x + units.gu(15), y)
543− mouseRelease(slider)
544+ mouseRelease(swipeMouseArea, x + units.gu(15), y)
545 var buttonCancel = findChild(buttonRow, "notify_button1")
546 var buttonCancel = findChild(buttonRow, "notify_button1")
546 var buttonAccept = findChild(buttonRow, "notify_button0")
547 var buttonAccept = findChild(buttonRow, "notify_button0")
@@ -559,7 +560,7 @@ Item {
559 tryCompareFunction(function() { mouseClick(buttonAccept, buttonAccept.width / 2, buttonAccept.height / 2); return actionSpy.signalArguments.length > 0; }, true);
560 tryCompareFunction(function() { mouseClick(buttonAccept, buttonAccept.width / 2, buttonAccept.height / 2); return actionSpy.signalArguments.length > 0; }, true);
560 compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id positive action")
561 compare(actionSpy.signalArguments[0][0], data.actions[0]["id"], "got wrong id positive action")
561 actionSpy.clear()
562 actionSpy.clear()
562− (notification)
563+ waitForRendering (notification)
564 // check if there's a ComboButton created due to more actions being passed
565 // check if there's a ComboButton created due to more actions being passed
565 if (data.actions.length > 2) {
566 if (data.actions.length > 2) {