diff options
author | Talank <talank@gces.edu.np> | 2021-12-21 10:15:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-21 10:15:09 +0300 |
commit | dce69265c27681e4f85c2adb723b8886714b4024 (patch) | |
tree | 45fa4ed40ac20095c9a8b005c12fbdd57f3649b6 /test/gui/shared/steps | |
parent | 785cef7544cbff8d169b73705b9ecf9c409b6f10 (diff) |
[Tests-Only] Fixed failing GUI tests for VFS (#9307)
Diffstat (limited to 'test/gui/shared/steps')
-rw-r--r-- | test/gui/shared/steps/steps.py | 50 |
1 files changed, 10 insertions, 40 deletions
diff --git a/test/gui/shared/steps/steps.py b/test/gui/shared/steps/steps.py index 097d92101..05c3d0165 100644 --- a/test/gui/shared/steps/steps.py +++ b/test/gui/shared/steps/steps.py @@ -990,46 +990,6 @@ def step(context): enableVFSSupport("Enable virtual file support (experimental)...") -@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, - 27, - Qt.NoModifier, - Qt.LeftButton, - ) - waitForObjectItem(names.settings_QMenu, btnText) - - -@Given("the user has enabled virtual file support") -def step(context): - enableVFSSupport("Enable virtual file support (experimental)...") - - -@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, - 27, - Qt.NoModifier, - Qt.LeftButton, - ) - activateItem( - waitForObjectItem(names.settings_QMenu, "Disable virtual file support...") - ) - clickButton( - waitForObject(names.disable_virtual_file_support_Disable_support_QPushButton) - ) - - @When('the user accepts the certificate') def step(context): clickButton(waitForObject(names.oCC_SslErrorDialog_cbTrustConnect_QCheckBox)) @@ -1268,3 +1228,13 @@ def step(context): ), collaborator[0], ) + + +@Then("VFS enabled baseline image should match the default screenshot") +def step(context): + test.vp("VP_VFS_enabled") + + +@Then("VFS enabled baseline image should not match the default screenshot") +def step(context): + test.xvp("VP_VFS_enabled") |