Commit 85ec0cdf authored by Christian Stenger's avatar Christian Stenger
Browse files

Squish: Improve ensureChecked()



...to avoid misbehaviour especially on Mac.

Change-Id: I25053ea34b180a60d9a260798f7758df8a1224e2
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
parent edaa6bcd
......@@ -24,6 +24,8 @@ def verifyChecked(objectName):
def ensureChecked(objectName, shouldBeChecked = True, timeout=20000):
object = waitForObject(objectName, timeout)
# synchronize to avoid false positives
waitFor('object.checked == shouldBeChecked', 1000)
if object.checked ^ shouldBeChecked:
clickButton(object)
if shouldBeChecked:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment