on xenial help sign in
Wait for the click to get registered by actionSpy
commit362c740f64ab9b2e6281ca8598af09523548de1b authorDalton Durst <dalton@ubports.com> dateFri 10 May 2019, 17:31 (7 years ago) parent3998b98
1 file changed+2−2
tests/qmltests/Notifications/tst_Notifications.qml+2−2
tests/qmltests/Notifications/tst_Notifications.qml+2−2
@@ -683,8 +683,8 @@ Item {
683683 // click to collapse
684684 tryCompareFunction(function() { mouseClick(comboButton, comboButton.width / 2, comboButton.height / 2); return !comboButton.expanded; }, true);
685685 } else {
686− mouseClick(buttonCancel)
687− compare(actionSpy.signalArguments[0][0], data.n.actions.data(1, ActionModel.RoleActionId), "got wrong id for negative action")
686+ tryCompareFunction(function() { mouseClick(buttonCancel); return actionSpy.signalArguments.length > 0; }, true);
687+ compare(actionSpy.signalArguments[0][0], data.n.actions.data(1, ActionModel.RoleActionId), "got wrong id for negative action");
688688 }
689689 }
690690