SquishTests: Adapt to different texts on macOS

Change-Id: Ie97003fd7de907d1a0f3ac71d6244dd68e2bf833
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Stenger
2023-07-19 15:32:31 +02:00
parent 74801a52f2
commit 182104e013

View File

@@ -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 = ("<p>The file <i>%s</i> has been changed on disk. Do you want to reload it?</p>"
"<p>The default behavior can be set in Edit > Preferences > Environment > System.</p>")
"<p>The default behavior can be set in X > Preferences > Environment > System.</p>")
popupText = popupText.replace("X", "Qt Creator" if platform.system() == "Darwin" else "Edit")
formerContent = None
for i, currentFile in enumerate(files):