From a08a5499e930989a4eb8584fb6b4a9232d31d591 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 15 Nov 2019 09:02:12 +0100 Subject: [PATCH] Squish: Fix expected ui elements and page order The wizard had been transformed to use the JsonWizard nowadays. Order of wizard pages has slightly changed to be consistent with the rest of the wizards. Change-Id: I841349d3b20dbc03a56a3dc4d15f717d0d21acdb Reviewed-by: Robert Loehning --- tests/system/shared/project.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py index fc2f9f887e7..471abd8a1ed 100644 --- a/tests/system/shared/project.py +++ b/tests/system/shared/project.py @@ -321,15 +321,13 @@ def createNewQmlExtension(workingDir, targets=[Targets.DESKTOP_5_6_1_DEFAULT]): if workingDir == None: workingDir = tempDir() __createProjectSetNameAndPath__(workingDir) - __chooseTargets__(targets, available) + nameLineEd = waitForObject("{name='ObjectName' type='Utils::FancyLineEdit' visible='1'}") + replaceEditorContent(nameLineEd, "TestItem") + uriLineEd = waitForObject("{name='Uri' type='Utils::FancyLineEdit' visible='1'}") + replaceEditorContent(uriLineEd, "org.qt-project.test.qmlcomponents") nextButton = waitForObject(":Next_QPushButton") clickButton(nextButton) - nameLineEd = waitForObject("{buddy={type='QLabel' text='Object class-name:' unnamed='1' visible='1'} " - "type='QLineEdit' unnamed='1' visible='1'}") - replaceEditorContent(nameLineEd, "TestItem") - uriLineEd = waitForObject("{buddy={type='QLabel' text='URI:' unnamed='1' visible='1'} " - "type='QLineEdit' unnamed='1' visible='1'}") - replaceEditorContent(uriLineEd, "org.qt-project.test.qmlcomponents") + __chooseTargets__(targets, available) clickButton(nextButton) __createProjectHandleLastPage__()