forked from qt-creator/qt-creator
SquishTests: Update expected tutorials in suite_WELP
Change-Id: I20231887ee8cc15e9bfdb6b45b964472b9246e57 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -129,7 +129,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]), "Creating .*", "Tutorials",
|
checkTableViewForContent(search % (expect[0][0], expect[0][1]), "^Qt .*", "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")
|
||||||
|
@@ -33,7 +33,7 @@ def main():
|
|||||||
tutorial = findExampleOrTutorial(listView, ".*", True)
|
tutorial = findExampleOrTutorial(listView, ".*", 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 = "Building and Running an Example"
|
bnr = "Build and run"
|
||||||
replaceEditorContent(searchTutorials, bnr.lower())
|
replaceEditorContent(searchTutorials, bnr.lower())
|
||||||
listView = __waitForListView__()
|
listView = __waitForListView__()
|
||||||
waitFor('findExampleOrTutorial(listView, "%s.*") is not None' % bnr, 3000)
|
waitFor('findExampleOrTutorial(listView, "%s.*") is not None' % bnr, 3000)
|
||||||
@@ -50,8 +50,8 @@ def main():
|
|||||||
sendEvent("QCloseEvent", waitForObject(":Help Widget_Help::Internal::HelpWidget"))
|
sendEvent("QCloseEvent", waitForObject(":Help Widget_Help::Internal::HelpWidget"))
|
||||||
# check a demonstration video link
|
# check a demonstration video link
|
||||||
mouseClick(searchTutorials)
|
mouseClick(searchTutorials)
|
||||||
replaceEditorContent(searchTutorials, "embedded device")
|
replaceEditorContent(searchTutorials, "device")
|
||||||
embeddedTutorial = "How to install and set up Qt for Device Creation.*"
|
embeddedTutorial = "^Qt Creator for Bare Metal Development"
|
||||||
listView = __waitForListView__()
|
listView = __waitForListView__()
|
||||||
waitFor('findExampleOrTutorial(listView, embeddedTutorial) is not None', 3000)
|
waitFor('findExampleOrTutorial(listView, embeddedTutorial) is not None', 3000)
|
||||||
tutorial = findExampleOrTutorial(listView, embeddedTutorial, True)
|
tutorial = findExampleOrTutorial(listView, embeddedTutorial, True)
|
||||||
|
Reference in New Issue
Block a user