diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-11-27 10:50:46 +0100 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2018-11-29 14:45:10 +0000 |
commit | d3c10869103a2fcda06cdf458040ff4490702485 (patch) | |
tree | 50a1ac9d340f9573cf76ba53f9bdc6d1bf07c547 /tests | |
parent | c5d1ec5144d54b39f3316ac0d618d37208360f39 (diff) |
Squish: Fix WELP tests
Adapt to new titles of some tutorials.
Change-Id: I18d62d88877b59a51ebfdb19f5fe16ac8d828800
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/system/suite_WELP/tst_WELP01/test.py | 2 | ||||
-rw-r--r-- | 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 49c5876d94..ce07f4fdaf 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 27e3f5d007..f66efba6c5 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 |