aboutsummaryrefslogtreecommitdiffstats
path: root/tests/system/suite_CSUP/tst_CSUP05
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-07-24 15:12:16 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-07-25 12:06:05 +0000
commite8727fcae25d96da9e55bb5a98dde813e4e5dfa0 (patch)
tree459634a1cfd5464266903d378c95c48c0469e9be /tests/system/suite_CSUP/tst_CSUP05
parentd9e847150f0d78fad1e902d7a53e2912db39e60b (diff)
Squish: Clean up single (left) mouse clicks on items or objects
Do no more use pixels as offset if we can handle this without. Clicking on items by using an (x, y) offset will likely fail if running on a machine with a different DPI setting. Change-Id: I0e5a4985104bd1d68aadf8c5534583fa1b048edb Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Diffstat (limited to 'tests/system/suite_CSUP/tst_CSUP05')
-rw-r--r--tests/system/suite_CSUP/tst_CSUP05/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/suite_CSUP/tst_CSUP05/test.py b/tests/system/suite_CSUP/tst_CSUP05/test.py
index 62be1a02e1..c9f3cb892d 100644
--- a/tests/system/suite_CSUP/tst_CSUP05/test.py
+++ b/tests/system/suite_CSUP/tst_CSUP05/test.py
@@ -69,7 +69,7 @@ def main():
replaceEditorContent(waitForObject(":Qt Creator.replaceEdit_Utils::FilterLineEdit"), "find")
oldCodeText = str(editorWidget.plainText)
clickButton(waitForObject(":Qt Creator.Replace All_QToolButton"))
- mouseClick(waitForObject(":Qt Creator.replaceEdit_Utils::FilterLineEdit"), 5, 5, 0, Qt.LeftButton)
+ mouseClick(waitForObject(":Qt Creator.replaceEdit_Utils::FilterLineEdit"))
newCodeText = str(editorWidget.plainText)
test.compare(newCodeText, oldCodeText.replace("window", "find").replace("Window", "find"),
"Verifying if: Found text is replaced with new word properly.")