diff options
author | Swoichha Adhikari <swoichhaa@gmail.com> | 2021-06-07 12:15:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 12:15:13 +0300 |
commit | fe113b75ce6a69dc876a9fdfd1eebac4ddcbd626 (patch) | |
tree | b0486e41249b6a68270e09049d19576d0a90c452 /test/gui/tst_removeAccountConnection | |
parent | a2c2a29a8fae8300917eb0414b49cf1007a8bfde (diff) |
[tests-only] remove connection (#8682)
Diffstat (limited to 'test/gui/tst_removeAccountConnection')
-rw-r--r-- | test/gui/tst_removeAccountConnection/test.feature | 25 | ||||
-rw-r--r-- | test/gui/tst_removeAccountConnection/test.py | 9 |
2 files changed, 34 insertions, 0 deletions
diff --git a/test/gui/tst_removeAccountConnection/test.feature b/test/gui/tst_removeAccountConnection/test.feature new file mode 100644 index 000000000..cae2a92d2 --- /dev/null +++ b/test/gui/tst_removeAccountConnection/test.feature @@ -0,0 +1,25 @@ +Feature: remove account connection + + As a user + I want to remove my account + So that I won't be using any client-UI services + + + Scenario: remove an account connection + Given user "Alice" has been created on the server with default attributes and without skeleton files + And user "Brian" 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 added an account with + | server | %local_server% | + | user | Brian | + | password | AaBb2Cc3Dd4 | + | localfolder | %client_sync_path% | + When the user removes the connection for user "Brian" and host %local_server_hostname% + Then an account should be displayed with the displayname Alice Hansen and host %local_server_hostname% + + + Scenario: remove the only account connection + 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 removes the connection for user "Alice" and host %local_server_hostname% + Then connection wizard should be visible diff --git a/test/gui/tst_removeAccountConnection/test.py b/test/gui/tst_removeAccountConnection/test.py new file mode 100644 index 000000000..d6224b99e --- /dev/null +++ b/test/gui/tst_removeAccountConnection/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') |