diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index cd15ffb070c..0ed88890bb2 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -235,7 +235,8 @@ def selectFromFileDialog(fileName, waitForFile=False): clickButton(findObject("{text='Open' type='QPushButton'}")) if waitForFile: fileCombo = waitForObject(":Qt Creator_FilenameQComboBox") - waitFor("str(fileCombo.currentText) in fileName", 5000) + if not waitFor("str(fileCombo.currentText) in fileName", 5000): + test.fail("%s could not be opened in time." % fileName) # add qt.qch from SDK path def addHelpDocumentationFromSDK():