diff options
author | Swoichha Adhikari <swoichhaa@gmail.com> | 2021-07-01 06:17:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 06:17:49 +0300 |
commit | ea03dab027840d112fa8e44a493c9aaaefa1fed1 (patch) | |
tree | a3eef98f85512a8b5624859941d6f177dbdb9f7b /test/gui/tst_sharing/test.feature | |
parent | d25f15af24912a57a4b1b18524ff78b5a575d6a6 (diff) |
[tests-only] change collaborator permissions (#8788)
Diffstat (limited to 'test/gui/tst_sharing/test.feature')
-rw-r--r-- | test/gui/tst_sharing/test.feature | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/gui/tst_sharing/test.feature b/test/gui/tst_sharing/test.feature index 957058cfc..f92187219 100644 --- a/test/gui/tst_sharing/test.feature +++ b/test/gui/tst_sharing/test.feature @@ -134,3 +134,41 @@ Feature: Sharing | path | /simple-folder | | name | Public link | And the public should not be able to download the file "lorem.txt" from the last created public link by "Alice" on the server + + + Scenario Outline: change collaborator permissions of a file & folder + Given user "Alice" has created on the server folder "simple-folder" + And user "Alice" on the server has created file "lorem.txt" + And user "Brian" has been created on the server with default attributes and without skeleton files + And user "Alice" on the server has shared folder "simple-folder" with user "Brian" with "all" permissions + And user "Alice" on the server has shared file "lorem.txt" with user "Brian" with "all" permissions + And user "Alice" has set up a client with default settings + When the user removes permissions "<permissions>" for user "Brian Murphy" of resource "%client_sync_path%/simple-folder" using the client-UI + And the user closes the sharing dialog + And the user removes permissions "<permissions>" for user "Brian Murphy" of resource "%client_sync_path%/lorem.txt" using the client-UI + Then "<permissions>" permissions should not be displayed for user "Brian Murphy" for resource "%client_sync_path%/simple-folder" on the client-UI + And "<permissions>" permissions should not be displayed for user "Brian Murphy" for resource "%client_sync_path%/lorem.txt" on the client-UI + And user "Alice" on the server should have a share with these details: + | field | value | + | uid_owner | Alice | + | share_with | Brian | + | share_type | user | + | file_target | /Shares/simple-folder | + | item_type | folder | + | permissions | <expected-folder-permission> | + And user "Alice" on the server should have a share with these details: + | field | value | + | uid_owner | Alice | + | share_with | Brian | + | share_type | user | + | file_target | /Shares/lorem.txt | + | item_type | file | + | permissions | <expected-file-permission> | + Examples: + | permissions | expected-folder-permission | expected-file-permission | + | edit | read, share | read, share | + | share | read, update, create, delete | read,update | + | edit,share | read | read | + + + |