SquishTests: Adapt to changed project template

Change-Id: I9aa98f194a7ab4fa1390b106e398b12546a7addd
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-02-16 14:15:40 +01:00
parent 7a26b76ce3
commit bc38ad8c59
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ def startQtCreatorWithNewAppAtQMLEditor(projectDir, projectName, line = None):
# create qt quick application
createNewQtQuickApplication(projectDir, projectName)
# open qml file
qmlFile = "%s.%s.qml\.qrc./.main\\.qml" % (projectName, projectName)
qmlFile = "%s.app%s.Main\\.qml" % (projectName, projectName)
if not openDocument(qmlFile):
test.fatal("Could not open %s" % qmlFile)
invokeMenuItem("File", "Exit")
+1 -1
View File
@@ -37,7 +37,7 @@ def main():
test.passes("Refactoring was properly applied in source file")
else:
test.fail("Refactoring of Text to MyComponent failed in source file. Content of editor:\n%s" % codeText)
myCompTE = "SampleApp.SampleApp.qml\\.qrc./.MyComponent\\.qml"
myCompTE = "SampleApp.appSampleApp.MyComponent\\.qml"
# there should be new QML file generated with name "MyComponent.qml"
try:
# openDocument() doesn't wait for expected elements, so it might be faster than the updates