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>
This commit is contained in:
Christian Stenger
2018-11-27 10:50:46 +01:00
committed by Robert Loehning
parent c5d1ec5144
commit d3c1086910
2 changed files with 4 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ def main():
for (qType, prop, info) in expect: for (qType, prop, info) in expect:
test.verify(checkIfObjectExists(search % (qType, prop)), test.verify(checkIfObjectExists(search % (qType, prop)),
"Verifying whether %s is shown" % info) "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.") "Verifying that at least one tutorial is displayed.")
# exit Qt Creator # exit Qt Creator
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")

View File

@@ -50,11 +50,13 @@ def main():
tutorial = findExampleOrTutorial(tableView, ".*", True) tutorial = findExampleOrTutorial(tableView, ".*", True)
test.verify(tutorial is None, test.verify(tutorial is None,
"Verifying: 'Tutorials' topic is opened and nothing is shown.") "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()) replaceEditorContent(searchTutorials, bnr.lower())
waitFor('findExampleOrTutorial(tableView, "%s.*") is not None' % bnr, 3000) waitFor('findExampleOrTutorial(tableView, "%s.*") is not None' % bnr, 3000)
tutorial = findExampleOrTutorial(tableView, "%s.*" % bnr, True) tutorial = findExampleOrTutorial(tableView, "%s.*" % bnr, True)
test.verify(tutorial is not None, "Verifying: Expected Text tutorial is shown.") 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 # select a text tutorial
mouseClick(tutorial) mouseClick(tutorial)
test.verify("Building and Running an Example" in test.verify("Building and Running an Example" in