SquishTests: Fix accessing build dir line edit on Win

The respective line edit is hidden inside the collapsed
details, so ensure we have expanded details instead.

Change-Id: Ib6f6fab9f06c3250a71baf95a853d770bfa9b221
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
This commit is contained in:
Christian Stenger
2023-03-07 12:41:36 +01:00
parent faf8f91b65
commit e113a12645

View File

@@ -45,6 +45,10 @@ def main():
if platform.system() in ('Microsoft' 'Windows'):
switchViewTo(ViewConstants.PROJECTS)
switchToBuildOrRunSettingsFor(kit, ProjectSettings.BUILD)
detailsWidget = waitForObject("{type='Utils::DetailsWidget' unnamed='1' visible='1' "
"summaryText~='^<b>Configure:</b>.+'}")
detailsButton = getChildByClass(detailsWidget, "QToolButton")
ensureChecked(detailsButton)
buildDir = os.path.join(str(waitForObject(":Qt Creator_Utils::BuildDirectoryLineEdit").text),
"debug")
switchViewTo(ViewConstants.EDIT)