From c625d2d0af226a23b0398ae63bc7b000492c8102 Mon Sep 17 00:00:00 2001 From: Swoichha Adhikari Date: Mon, 9 Aug 2021 12:52:48 +0545 Subject: [Tests Only] add test for enable/disable vfs (#8835) * [Tests Only] add test for vfs * add test for disabling vfs * vfs object from model * make code DRY * added few comment for coordinates --- test/gui/tst_vfs/test.feature | 20 ++++++++++++++++++++ test/gui/tst_vfs/test.py | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 test/gui/tst_vfs/test.feature create mode 100644 test/gui/tst_vfs/test.py (limited to 'test/gui/tst_vfs') diff --git a/test/gui/tst_vfs/test.feature b/test/gui/tst_vfs/test.feature new file mode 100644 index 000000000..8bcb23bd0 --- /dev/null +++ b/test/gui/tst_vfs/test.feature @@ -0,0 +1,20 @@ +Feature: Enable/disable virtual file support + + As a user + I want to enable virtual file support + So that I can synchronize virtual files with local folder + + + Scenario: Enable VFS + Given user "Alice" has been created on the server with default attributes and without skeleton files + And user "Alice" has set up a client with default settings + When the user enables virtual file support + Then the "Disable virtual file support..." button should be available + + + Scenario: Disable VFS + Given user "Alice" has been created on the server with default attributes and without skeleton files + And user "Alice" has set up a client with default settings + And the user has enabled virtual file support + When the user disables virtual file support + Then the "Enable virtual file support (experimental)..." button should be available \ No newline at end of file diff --git a/test/gui/tst_vfs/test.py b/test/gui/tst_vfs/test.py new file mode 100644 index 000000000..d6224b99e --- /dev/null +++ b/test/gui/tst_vfs/test.py @@ -0,0 +1,9 @@ +source(findFile('scripts', 'python/bdd.py')) + +setupHooks('../shared/scripts/bdd_hooks.py') +collectStepDefinitions('./steps', '../shared/steps') + + +def main(): + testSettings.throwOnFailure = True + runFeatureFile('test.feature') -- cgit v1.2.3