diff --git a/tests/helpers.py b/tests/helpers.py index 6e340a192f67ba608fcb3ce94536c62f7501e72d..709a071fbc38e783b849152b7927cda3e91438d2 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -7,7 +7,7 @@ def click_on_top_message_box(): topWidgets = QApplication.topLevelWidgets() for w in topWidgets: if isinstance(w, QMessageBox): - QTest.keyClick(w, Qt.Key_Enter) + QTest.mouseClick(w.button(QMessageBox.Yes), Qt.LeftButton) elif isinstance(w, QDialog) and w.windowTitle() == "Registration": QTest.keyClick(w, Qt.Key_Enter)