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 # create qt quick application
createNewQtQuickApplication(tempDir(), "SampleApp") createNewQtQuickApplication(tempDir(), "SampleApp")
# create syntax error in qml file # 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"): if not appendToLine(waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget"), "Window {", "SyntaxError"):
invokeMenuItem("File", "Exit") invokeMenuItem("File", "Exit")
return return

View File

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

View File

@@ -33,7 +33,7 @@ def main():
checkCompile() checkCompile()
else: else:
appOutput = logApplicationOutput() 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?") "Does the Application Output indicate QML errors?")
invokeMenuItem("File", "Close All Projects and Editors") invokeMenuItem("File", "Close All Projects and Editors")