diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index ef46aca7b26..6501f738a2c 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -391,9 +391,9 @@ def getConfiguredKits(): test.log("Configured kits: %s" % str(result)) return result -def visibleCheckBoxExists(text): +def enabledCheckBoxExists(text): try: - findObject("{type='QCheckBox' text='%s' visible='1'}" % text) + waitForObject("{type='QCheckBox' text='%s'}" % text, 100) return True except: return False diff --git a/tests/system/suite_general/tst_create_proj_wizard/test.py b/tests/system/suite_general/tst_create_proj_wizard/test.py index 69a69ace30a..1d822c7ca59 100644 --- a/tests/system/suite_general/tst_create_proj_wizard/test.py +++ b/tests/system/suite_general/tst_create_proj_wizard/test.py @@ -93,7 +93,7 @@ def main(): def verifyKitCheckboxes(kits, displayedPlatforms): waitForObject("{type='QLabel' unnamed='1' visible='1' text='Kit Selection'}") - availableCheckboxes = frozenset(filter(visibleCheckBoxExists, kits.keys())) + availableCheckboxes = frozenset(filter(enabledCheckBoxExists, kits.keys())) # verification whether expected, found and configured match expectedShownKits = availableCheckboxes.intersection(displayedPlatforms)