summaryrefslogtreecommitdiff
path: root/tests/system/suite_general/tst_create_proj_wizard/test.py
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_general/tst_create_proj_wizard/test.py
parentd9e847150f0d78fad1e902d7a53e2912db39e60b (diff)
downloadqt-creator-e8727fcae25d96da9e55bb5a98dde813e4e5dfa0.tar.gz
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_general/tst_create_proj_wizard/test.py')
-rw-r--r--tests/system/suite_general/tst_create_proj_wizard/test.py6
1 files changed, 3 insertions, 3 deletions
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 7490427692..534317c3d1 100644
--- a/tests/system/suite_general/tst_create_proj_wizard/test.py
+++ b/tests/system/suite_general/tst_create_proj_wizard/test.py
@@ -55,7 +55,7 @@ def main():
# skip non-configurable
if "Import" in category:
continue
- clickItem(categoriesView, "Projects." + category, 5, 5, 0, Qt.LeftButton)
+ mouseClick(waitForObjectItem(categoriesView, "Projects." + category))
templatesView = waitForObject("{name='templatesView' type='QListView' visible='1'}")
# needed because categoriesView and templatesView using same model
for template in dumpItems(templatesView.model(), templatesView.rootIndex()):
@@ -147,12 +147,12 @@ def __createProject__(category, template):
invokeMenuItem("File", "New File or Project...")
selectFromCombo(waitForObject(":New.comboBox_QComboBox"), "All Templates")
categoriesView = waitForObject(":New.templateCategoryView_QTreeView")
- clickItem(categoriesView, "Projects." + category, 5, 5, 0, Qt.LeftButton)
+ mouseClick(waitForObjectItem(categoriesView, "Projects." + category))
templatesView = waitForObject("{name='templatesView' type='QListView' visible='1'}")
test.log("Verifying '%s' -> '%s'" % (category.replace("\\.", "."), template.replace("\\.", ".")))
origTxt = safeGetTextBrowserText()
- clickItem(templatesView, template, 5, 5, 0, Qt.LeftButton)
+ mouseClick(waitForObjectItem(templatesView, template))
waitFor("origTxt != safeGetTextBrowserText() != ''", 2000)
displayedPlatforms = __getSupportedPlatforms__(safeGetTextBrowserText(), template, True)[0]
safeClickButton("Choose...")