diff options
-rwxr-xr-x | tests/system/suite_HELP/tst_HELP02/test.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/system/suite_HELP/tst_HELP02/test.py b/tests/system/suite_HELP/tst_HELP02/test.py index f246a41b6c..e3fc68cb40 100755 --- a/tests/system/suite_HELP/tst_HELP02/test.py +++ b/tests/system/suite_HELP/tst_HELP02/test.py @@ -91,8 +91,14 @@ def setKeyboardShortcutForAboutQtC(): expected = 'Ctrl+Alt+A' if platform.system() == 'Darwin': expected = 'Ctrl+Opt+A' - test.verify(waitFor("str(findObject(shortcut).text) == expected", 5000), - "Expected key sequence is displayed.") + + shortcutMatches = waitFor("str(findObject(shortcut).text) == expected", 5000) + if not shortcutMatches and platform.system() == 'Darwin': + test.warning("Squish Issue: shortcut was set to %s - entering it manually now" + % waitForObject(shortcut).text) + replaceEditorContent(shortcut, expected) + else: + test.verify(shortcutMatches, "Expected key sequence is displayed.") clickButton(waitForObject(":Options.OK_QPushButton")) def main(): |