From 88446ae78ae4eed307f92a251e8efd7d9e156aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Mon, 23 Sep 2024 22:47:48 +0200 Subject: [PATCH] SquishTests: Update expected tutorials in suite_WELP Change-Id: I20231887ee8cc15e9bfdb6b45b964472b9246e57 Reviewed-by: Christian Stenger --- tests/system/suite_WELP/tst_WELP01/test.py | 2 +- tests/system/suite_WELP/tst_WELP04/test.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/system/suite_WELP/tst_WELP01/test.py b/tests/system/suite_WELP/tst_WELP01/test.py index 89ee6dbd1e3..1cad3151d85 100644 --- a/tests/system/suite_WELP/tst_WELP01/test.py +++ b/tests/system/suite_WELP/tst_WELP01/test.py @@ -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") diff --git a/tests/system/suite_WELP/tst_WELP04/test.py b/tests/system/suite_WELP/tst_WELP04/test.py index 21b4b515bbf..632a803e7e5 100644 --- a/tests/system/suite_WELP/tst_WELP04/test.py +++ b/tests/system/suite_WELP/tst_WELP04/test.py @@ -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)