diff options
author | Swoichha Adhikari <swoichhaa@gmail.com> | 2021-08-09 10:07:48 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-08-09 13:13:18 +0300 |
commit | c625d2d0af226a23b0398ae63bc7b000492c8102 (patch) | |
tree | e8db5a11edac748bb0d62d7b6ace27506245ff5b /test/gui/tst_vfs | |
parent | a41bc4ac618374338c050daffd453b44d42dc5f1 (diff) |
[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
Diffstat (limited to 'test/gui/tst_vfs')
-rw-r--r-- | test/gui/tst_vfs/test.feature | 20 | ||||
-rw-r--r-- | test/gui/tst_vfs/test.py | 9 |
2 files changed, 29 insertions, 0 deletions
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') |