aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/shared/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/shared/project.py')
-rw-r--r--tests/system/shared/project.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py
index 71689babf77..00641e465be 100644
--- a/tests/system/shared/project.py
+++ b/tests/system/shared/project.py
@@ -428,19 +428,19 @@ def __chooseTargets__(targets, availableTargets=None, additionalFunc=None):
try:
ensureChecked("{type='QCheckBox' text='%s' visible='1'}" % Targets.getStringForTarget(current),
mustCheck, 3000)
+ detailsWidget = waitForObject("{type='Utils::DetailsWidget' unnamed='1' "
+ "window=':Qt Creator_Core::Internal::MainWindow' "
+ "summaryText='%s' visible='1'}"
+ % Targets.getStringForTarget(current))
+ detailsButton = getChildByClass(detailsWidget, "QToolButton")
if mustCheck:
checkedTargets.add(current)
# perform additional function on detailed kits view
if additionalFunc:
- detailsWidget = waitForObject("{type='Utils::DetailsWidget' unnamed='1' "
- "window=':Qt Creator_Core::Internal::MainWindow' "
- "summaryText='%s' visible='1'}"
- % Targets.getStringForTarget(current))
- detailsButton = getChildByClass(detailsWidget, "QToolButton")
- clickButton(detailsButton)
+ ensureChecked(detailsButton)
additionalFunc()
- clickButton(detailsButton)
+ ensureChecked(detailsButton, False)
except LookupError:
if mustCheck:
test.fail("Failed to check target '%s'." % Targets.getStringForTarget(current))