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