From 182104e013c65e1b190a6c0aa99e4bab7251e590 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 19 Jul 2023 15:32:31 +0200 Subject: [PATCH] SquishTests: Adapt to different texts on macOS Change-Id: Ie97003fd7de907d1a0f3ac71d6244dd68e2bf833 Reviewed-by: Marcus Tillmanns --- tests/system/suite_editors/tst_edit_externally/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system/suite_editors/tst_edit_externally/test.py b/tests/system/suite_editors/tst_edit_externally/test.py index b468b4ebe04..dea2f5d8ec6 100644 --- a/tests/system/suite_editors/tst_edit_externally/test.py +++ b/tests/system/suite_editors/tst_edit_externally/test.py @@ -26,7 +26,8 @@ def main(): mBox = ("{text?='The file * has been changed on disk. Do you want to reload it?' " "type='QMessageBox' unnamed='1' visible='1'}") popupText = ("

The file %s has been changed on disk. Do you want to reload it?

" - "

The default behavior can be set in Edit > Preferences > Environment > System.

") + "

The default behavior can be set in X > Preferences > Environment > System.

") + popupText = popupText.replace("X", "Qt Creator" if platform.system() == "Darwin" else "Edit") formerContent = None for i, currentFile in enumerate(files):