SquishTests: More adaption to changed wizard template

Change-Id: Ib073a8eae3ee87dc46699083799a8316da66b32d
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-02-22 15:19:56 +01:00
parent 0604027834
commit 5c4cf2d018
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ def main():
# create qt quick application
createNewQtQuickApplication(tempDir(), "SampleApp")
# create syntax error in qml file
openDocument("SampleApp.Resources.qml\.qrc./.main\\.qml")
openDocument("SampleApp.appSampleApp.Main\\.qml")
if not appendToLine(waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"), "Window {", "SyntaxError"):
invokeMenuItem("File", "Exit")
return

View File

@@ -15,8 +15,8 @@ def main():
invokeMenuItem("File", "Exit")
def prepareQmlFile():
if not openDocument("untitled.untitled.qml\\.qrc./.main\\.qml"):
test.fatal("Could not open main.qml")
if not openDocument("untitled.appuntitled.Main\\.qml"):
test.fatal("Could not open Main.qml")
return None
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
isDarwin = platform.system() == 'Darwin'

View File

@@ -33,7 +33,7 @@ def main():
checkCompile()
else:
appOutput = logApplicationOutput()
test.verify(not ("main.qml" in appOutput or "MainForm.ui.qml" in appOutput),
test.verify(not ("Main.qml" in appOutput or "MainForm.ui.qml" in appOutput),
"Does the Application Output indicate QML errors?")
invokeMenuItem("File", "Close All Projects and Editors")