From 792863ed104b8f3d5a994d42ed0773eb9bb3e8d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Fri, 23 Nov 2018 12:30:30 +0100 Subject: [PATCH] Add acceptance test for checking that the owner can see reshares MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- tests/acceptance/features/app-files.feature | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/acceptance/features/app-files.feature b/tests/acceptance/features/app-files.feature index ab4131357ed..b95e3360115 100644 --- a/tests/acceptance/features/app-files.feature +++ b/tests/acceptance/features/app-files.feature @@ -348,6 +348,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 -- 2.39.5