diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-06-11 23:18:21 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-06-24 19:22:39 +0000 |
commit | 4401cd27177c927341a65c512a032173ce08632a (patch) | |
tree | 5b7f7c6bf7dedc71b7edebd5b6207161374ab6b8 /tests | |
parent | 244a7e16f3a1c66021626f585387607912116fa5 (diff) | |
download | nextcloud-server-4401cd27177c927341a65c512a032173ce08632a.tar.gz nextcloud-server-4401cd27177c927341a65c512a032173ce08632a.zip |
Add acceptance test for disabling create permission after sharing
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acceptance/features/app-files-sharing.feature | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files-sharing.feature b/tests/acceptance/features/app-files-sharing.feature index 19a3af51713..e0701efd9f2 100644 --- a/tests/acceptance/features/app-files-sharing.feature +++ b/tests/acceptance/features/app-files-sharing.feature @@ -334,3 +334,46 @@ Feature: app-files-sharing Then I see that the file is shared with "user1" And I see that "user1" can not create in the share And I see that "user1" can not be allowed to create in the share + + Scenario: sharee can revoke create permission from reshare after the sharer disabled it + Given I act as John + And I am logged in as the admin + And I act as Jane + And I am logged in + And I act as Jim + And I am logged in as "user1" + And I act as John + And I create a new folder named "Shared folder" + And I see that the file list contains a file named "Shared folder" + And I share "Shared folder" with "user0" + And I see that the file is shared with "user0" + And I act as Jane + # The Files app is open again to reload the file list + And I open the Files app + And I share "Shared folder" with "user1" + And I see that the file is shared with "user1" + And I act as John + And I set the share with "user0" as not creatable + And I see that "user0" can not create in the share + And I act as Jim + # The Files app is open again to reload the file list + And I open the Files app + And I enter in the folder named "Shared folder" + # Creation is still allowed in already created reshares + And I create a new folder named "Subfolder" + And I see that the file list contains a file named "Subfolder" + When I act as Jane + # The Files app is open again to reload the file list + And I open the Files app + And I open the details view for "Shared folder" + And I see that the details view is open + And I open the "Sharing" tab in the details view + And I see that the "Sharing" tab in the details view is eventually loaded + And I set the share with "user1" as not creatable + Then I see that "user1" can not create in the share + And I see that "user1" can not be allowed to create in the share + And I act as Jim + # The Files app is open again to reload the file list + And I open the Files app + And I enter in the folder named "Shared folder" + And I see that it is not possible to create new files |