diff options
author | Robert Loehning <robert.loehning@qt.io> | 2019-07-26 15:12:31 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@qt.io> | 2019-07-26 14:56:47 +0000 |
commit | 2c5d4ef6f8a3f316f4308c4fa05f167628b3fc5f (patch) | |
tree | 7320b06d5987599ddbe15089a60cec8e45045241 /tests | |
parent | c49f08045813099d48b9f4048f9495f9bd3e8d4f (diff) |
Squish: Use parameters in some calls to mouseClick(...)
Partially reverts e8727fcae25d96da9e55bb5a98dde813e4e5dfa0 for these lines.
Change-Id: I268b1ff337095bd08d3e92c8be57bc2b6e5de8d9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/system/shared/utils.py | 3 | ||||
-rw-r--r-- | tests/system/suite_APTW/tst_APTW03/test.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index ae6bfc1f5c..e8bc1425a7 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -99,7 +99,8 @@ def selectFromCombo(objectSpec, itemName): else: mouseClick(object) snooze(1) - mouseClick(waitForObjectItem(object, itemName.replace(".", "\\."))) + # params required here + mouseClick(waitForObjectItem(object, itemName.replace(".", "\\.")), 5, 5, 0, Qt.LeftButton) test.verify(waitFor("str(object.currentText)==itemName", 5000), "Switched combo item to '%s'" % itemName) return True diff --git a/tests/system/suite_APTW/tst_APTW03/test.py b/tests/system/suite_APTW/tst_APTW03/test.py index 04048854b8..fb04c53fa8 100644 --- a/tests/system/suite_APTW/tst_APTW03/test.py +++ b/tests/system/suite_APTW/tst_APTW03/test.py @@ -29,7 +29,8 @@ def handleInsertVirtualFunctions(expected, toAdd): def __checkVirtualFunction(treeView, classIndex, isCheckedF, child): item = "%s.%s" % (str(classIndex.text), str(child.text)) test.log("Checking '%s'." % item) - mouseClick(waitForObjectItem(treeView, item.replace("_", "\\_"))) + # params required here + mouseClick(waitForObjectItem(treeView, item.replace("_", "\\_")), 5, 5, 0, Qt.LeftButton) test.verify(waitFor("isCheckedF(child)", 1000), "Function must be checked after clicking") treeView = waitForObject("{container={title='Functions to insert:' type='QGroupBox' unnamed='1'" |