summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2023-04-05 23:40:29 +0200
committerRobert Löhning <robert.loehning@qt.io>2023-04-13 10:48:21 +0000
commit2ffe169a8d90205a02e89844b5e6280daf51c3bd (patch)
treec629bcabc6aca0a95a432584d0344c3596afd563
parentc842b96f77f7d651da5318bb1323403e5ed5d6dc (diff)
downloadqt-creator-2ffe169a8d90205a02e89844b5e6280daf51c3bd.tar.gz
SquishTests: Try stabilizing tst_generic_highlighter
Change-Id: I12e29f2886d22ce03a1a2eb62d5c776cd894d359 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--tests/system/suite_editors/tst_generic_highlighter/test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/system/suite_editors/tst_generic_highlighter/test.py b/tests/system/suite_editors/tst_generic_highlighter/test.py
index 2e822a966f..ea6c7aee40 100644
--- a/tests/system/suite_editors/tst_generic_highlighter/test.py
+++ b/tests/system/suite_editors/tst_generic_highlighter/test.py
@@ -99,10 +99,12 @@ def addHighlighterDefinition(*languages):
"text='Generic Highlighter'}")
clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Generic Highlighter")
+ test.log("Trying to download definitions...")
clickButton("{text='Download Definitions' type='QPushButton' unnamed='1' visible='1'}")
updateStatus = "{name='updateStatus' type='QLabel' visible='1'}"
waitFor("object.exists(updateStatus)", 5000)
- if waitFor('str(findObject(updateStatus).text) == "Download finished"', 5000):
+ if waitFor('str(findObject(updateStatus).text) == "Download finished"', 20000):
+ test.log("Received definitions")
test.verify(os.path.exists(syntaxDirectory),
"Directory for syntax highlighter files exists.")
xmlFiles = glob.glob(os.path.join(syntaxDirectory, "*.xml"))