forked from qt-creator/qt-creator
Squish: Added function ensureChecked
Change-Id: Icca18645613d0b88e4394aa5fc3820626a59e647 Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
ed2458a893
commit
e465a1763b
@@ -75,9 +75,7 @@ def __createProjectSetNameAndPath__(path, projectName = None, checks = True):
|
||||
labelCheck = stateLabel.text=="" and stateLabel.styleSheet == ""
|
||||
test.verify(labelCheck, "Project name and base directory without warning or error")
|
||||
# make sure this is not set as default location
|
||||
cbDefaultLocation = waitForObject("{type='QCheckBox' name='projectsDirectoryCheckBox' visible='1'}", 20000)
|
||||
if cbDefaultLocation.checked:
|
||||
clickButton(cbDefaultLocation)
|
||||
ensureChecked("{type='QCheckBox' name='projectsDirectoryCheckBox' visible='1'}", False)
|
||||
clickButton(waitForObject(":Next_QPushButton"))
|
||||
return projectName
|
||||
|
||||
|
||||
Reference in New Issue
Block a user