From 038e214f904f50a70f9456a1e5737429ae3809a8 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 19 Apr 2018 15:54:43 +0200 Subject: [PATCH] Squish: Fix timing issue in tst_HELP04 Change-Id: Ib69429f9288fb767186c61e913a29fc75ddc4498 Reviewed-by: Christian Stenger --- tests/system/suite_HELP/tst_HELP04/test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100755 => 100644 tests/system/suite_HELP/tst_HELP04/test.py diff --git a/tests/system/suite_HELP/tst_HELP04/test.py b/tests/system/suite_HELP/tst_HELP04/test.py old mode 100755 new mode 100644 index ed90010e3bb..0fc602717c6 --- a/tests/system/suite_HELP/tst_HELP04/test.py +++ b/tests/system/suite_HELP/tst_HELP04/test.py @@ -85,12 +85,14 @@ def main(): switchViewTo(ViewConstants.HELP) # verify that search widget is accessible mouseClick(waitForObjectItem(":Qt Creator_Core::Internal::CommandComboBox", "Search")) + snooze(1) # Looks like searching is still available for an instant test.verify(checkIfObjectExists("{type='QHelpSearchQueryWidget' unnamed='1' visible='1' " - "window=':Qt Creator_Core::Internal::MainWindow'}"), + "window=':Qt Creator_Core::Internal::MainWindow'}", + timeout=600000), "Verifying search widget visibility.") # try to search empty string clickButton(waitForObject("{text='Search' type='QPushButton' unnamed='1' visible='1' " - "window=':Qt Creator_Core::Internal::MainWindow'}", 600000)) + "window=':Qt Creator_Core::Internal::MainWindow'}")) try: # Creator built with Qt <= 5.8.0 resultWidget = waitForObject(':Hits_QCLuceneResultWidget', 5000)