SquishTests: Update expected tutorials in suite_WELP

Change-Id: I20231887ee8cc15e9bfdb6b45b964472b9246e57
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2024-09-23 22:47:48 +02:00
parent 31e98000f7
commit 88446ae78a
2 changed files with 4 additions and 4 deletions

View File

@@ -129,7 +129,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]), "Creating .*", "Tutorials",
checkTableViewForContent(search % (expect[0][0], expect[0][1]), "^Qt .*", "Tutorials",
"Verifying that at least one tutorial is displayed.")
# exit Qt Creator
invokeMenuItem("File", "Exit")

View File

@@ -33,7 +33,7 @@ def main():
tutorial = findExampleOrTutorial(listView, ".*", True)
test.verify(tutorial is None,
"Verifying: 'Tutorials' topic is opened and nothing is shown.")
bnr = "Building and Running an Example"
bnr = "Build and run"
replaceEditorContent(searchTutorials, bnr.lower())
listView = __waitForListView__()
waitFor('findExampleOrTutorial(listView, "%s.*") is not None' % bnr, 3000)
@@ -50,8 +50,8 @@ def main():
sendEvent("QCloseEvent", waitForObject(":Help Widget_Help::Internal::HelpWidget"))
# check a demonstration video link
mouseClick(searchTutorials)
replaceEditorContent(searchTutorials, "embedded device")
embeddedTutorial = "How to install and set up Qt for Device Creation.*"
replaceEditorContent(searchTutorials, "device")
embeddedTutorial = "^Qt Creator for Bare Metal Development"
listView = __waitForListView__()
waitFor('findExampleOrTutorial(listView, embeddedTutorial) is not None', 3000)
tutorial = findExampleOrTutorial(listView, embeddedTutorial, True)