From 744ef5cd35741407bceb55237bbc2792267354e7 Mon Sep 17 00:00:00 2001 From: swoichha Date: Wed, 4 Aug 2021 10:27:06 +0545 Subject: [PATCH] added few comment for coordinates --- test/gui/shared/steps/steps.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index cfe87f4fee0..01ae131afe4 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -747,6 +747,9 @@ def step(context, resource, content): def enableVFSSupport(vfsBtnText): + # The enabling/disabling VFS button do not have it's own object + # But it is inside the "stack_folderList_QTreeView" object. + # So we are clicking at (718, 27) of "stack_folderList_QTreeView" object to enable/disable VFS mouseClick( waitForObjectItem(names.stack_folderList_QTreeView, "_1"), 718, @@ -767,10 +770,13 @@ def step(context): @Then('the "|any|" button should be available') def step(context, btnText): + # The enabling/disabling VFS button do not have it's own object + # But it is inside the "stack_folderList_QTreeView" object. + # So we are clicking at (718, 27) of "stack_folderList_QTreeView" object to enable/disable VFS mouseClick( waitForObjectItem(names.stack_folderList_QTreeView, "_1"), 718, - 35, + 27, Qt.NoModifier, Qt.LeftButton, ) @@ -784,10 +790,13 @@ def step(context): @When("the user disables virtual file support") def step(context): + # The enabling/disabling VFS button do not have it's own object + # But it is inside the "stack_folderList_QTreeView" object. + # So we are clicking at (718, 27) of "stack_folderList_QTreeView" object to enable/disable VFS mouseClick( waitForObjectItem(names.stack_folderList_QTreeView, "_1"), 733, - 34, + 27, Qt.NoModifier, Qt.LeftButton, )