aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2021-02-24 16:16:19 +0100
committerChristian Stenger <christian.stenger@qt.io>2021-02-25 08:02:37 +0000
commitde04f29198a602491b4195c778ce6a7f98dacf4c (patch)
tree54450e8a2e32195f3287b86aafe92dcfd3d6bd91
parentfc5af03862d117b68a3fb99db083c47b9dd17ff6 (diff)
Squish: Wait for the docs update progress bar
Change-Id: I73e80119a7e5a8d09397138d1301154af597f907 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
-rw-r--r--tests/system/shared/qtcreator.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/system/shared/qtcreator.py b/tests/system/shared/qtcreator.py
index 76dbd7071d..9ecec40a20 100644
--- a/tests/system/shared/qtcreator.py
+++ b/tests/system/shared/qtcreator.py
@@ -66,10 +66,12 @@ def startQC(additionalParameters=None, withPreparedSettingsPath=True, closeLinkT
appWithOptions.extend(('-platform', 'windows:dialogs=none'))
test.log("Starting now: %s" % ' '.join(appWithOptions))
appContext = startApplication(' '.join(appWithOptions))
- if closeLinkToQt:
- clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
- if cancelTour:
- clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
+ if closeLinkToQt or cancelTour:
+ progressBarWait(3000) # wait for the "Updating documentation" progress bar
+ if closeLinkToQt:
+ clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
+ if cancelTour:
+ clickButton(waitForObject(":*Qt Creator.Do Not Show Again_QToolButton"))
return appContext;
def startedWithoutPluginError():