From d3c10869103a2fcda06cdf458040ff4490702485 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 27 Nov 2018 10:50:46 +0100 Subject: [PATCH] Squish: Fix WELP tests Adapt to new titles of some tutorials. Change-Id: I18d62d88877b59a51ebfdb19f5fe16ac8d828800 Reviewed-by: Robert Loehning Reviewed-by: Christian Stenger --- tests/system/suite_WELP/tst_WELP01/test.py | 2 +- tests/system/suite_WELP/tst_WELP04/test.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/system/suite_WELP/tst_WELP01/test.py b/tests/system/suite_WELP/tst_WELP01/test.py index 49c5876d940..ce07f4fdaf3 100755 --- a/tests/system/suite_WELP/tst_WELP01/test.py +++ b/tests/system/suite_WELP/tst_WELP01/test.py @@ -156,7 +156,7 @@ def main(): for (qType, prop, info) in expect: test.verify(checkIfObjectExists(search % (qType, prop)), "Verifying whether %s is shown" % info) - checkTableViewForContent(search % (expect[0][0], expect[0][1]), "Help: Create .*", "Tutorials", + checkTableViewForContent(search % (expect[0][0], expect[0][1]), "Help: Creating .*", "Tutorials", "Verifying that at least one tutorial is displayed.") # exit Qt Creator invokeMenuItem("File", "Exit") diff --git a/tests/system/suite_WELP/tst_WELP04/test.py b/tests/system/suite_WELP/tst_WELP04/test.py index 27e3f5d007d..f66efba6c57 100644 --- a/tests/system/suite_WELP/tst_WELP04/test.py +++ b/tests/system/suite_WELP/tst_WELP04/test.py @@ -50,11 +50,13 @@ def main(): tutorial = findExampleOrTutorial(tableView, ".*", True) test.verify(tutorial is None, "Verifying: 'Tutorials' topic is opened and nothing is shown.") - bnr = "Help: Build and Run Examples" + bnr = "Help: Building and Running an Example" replaceEditorContent(searchTutorials, bnr.lower()) waitFor('findExampleOrTutorial(tableView, "%s.*") is not None' % bnr, 3000) tutorial = findExampleOrTutorial(tableView, "%s.*" % bnr, True) test.verify(tutorial is not None, "Verifying: Expected Text tutorial is shown.") + # clicking before documentation was updated will open the tutorial in browser + progressBarWait(warn=False) # select a text tutorial mouseClick(tutorial) test.verify("Building and Running an Example" in