From de04f29198a602491b4195c778ce6a7f98dacf4c Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 24 Feb 2021 16:16:19 +0100 Subject: [PATCH] Squish: Wait for the docs update progress bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I73e80119a7e5a8d09397138d1301154af597f907 Reviewed-by: Robert Löhning --- tests/system/shared/qtcreator.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/system/shared/qtcreator.py b/tests/system/shared/qtcreator.py index 76dbd7071d6..9ecec40a207 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():