SquishTests: Make workaround permanent for Creator 10

The bug is fixed in master branch only.

Task-number: QTCREATORBUG-28985
Change-Id: I5b1648e89a2ae61ce651ce6d2061fea58559d145
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Löhning
2023-04-20 23:39:21 +02:00
parent fff4ab8b3d
commit 183cf3adc5

View File

@@ -48,14 +48,12 @@ def main():
pass pass
# open MyComponent.qml file for verification # open MyComponent.qml file for verification
docOpened = openDocument(myCompTE) docOpened = openDocument(myCompTE)
if JIRA.isBugStillOpen(28985): # Work around QTCREATORBUG-28985
test.xverify(docOpened, "Was MyComponent.qml properly generated in project explorer?") test.xverify(docOpened, "Was MyComponent.qml properly generated in project explorer?")
saveAndExit() saveAndExit()
return return
if not test.verify(docOpened, "Was MyComponent.qml properly generated in project explorer?"): # The workaround will be removed in master branch
test.fatal("Could not open MyComponent.qml.") # Following dead code left in intentionally to still allow merging forward changes in it.
saveAndExit()
return
editorArea = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget") editorArea = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
codeText = str(editorArea.plainText) codeText = str(editorArea.plainText)
# there should be Text item in new file # there should be Text item in new file