summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-23 12:30:30 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-11-23 15:13:15 +0100
commit563454b741df5f2d36d8f51d59281a48bd27f253 (patch)
treedc74c7647531c00a950b6fdb76be71a5e45037a7 /tests
parent7aaf5e6a4c8eefe315d2a3399ac73acf90a6dfef (diff)
downloadnextcloud-server-563454b741df5f2d36d8f51d59281a48bd27f253.tar.gz
nextcloud-server-563454b741df5f2d36d8f51d59281a48bd27f253.zip
Add acceptance test for checking that the owner can see reshares
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/app-files.feature25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature
index e037bc1a36e..05c54484252 100644
--- a/tests/acceptance/features/app-files.feature
+++ b/tests/acceptance/features/app-files.feature
@@ -378,6 +378,31 @@ Feature: app-files
And I see that the "Sharing" tab in the details view is eventually loaded
And I see that the file is shared with me by "user0"
+ Scenario: owner sees reshares with other users
+ 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 John
+ And I rename "welcome.txt" to "farewell.txt"
+ And I see that the file list contains a file named "farewell.txt"
+ And I share "farewell.txt" 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 "farewell.txt" with "user1"
+ And I see that the file is shared with "user1"
+ When I act as John
+ # The Files app is open again to reload the file list and the shares
+ And I open the Files app
+ And I open the details view for "farewell.txt"
+ 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
+ Then I see that the file is shared with "user0"
+ And I see that the file is shared with "user1"
+
Scenario: share an empty folder with another user
Given I act as John
And I am logged in as the admin