summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-04-10 21:42:14 +0200
committerGitHub <noreply@github.com>2019-04-10 21:42:14 +0200
commit4111f45411a2da646af5be2b731c9871737d75e4 (patch)
tree54e182ee63b290ac90924a1e685b1b981b2a8ce1
parent47226a19cc5f39e74902a5702c9d295b85054cf5 (diff)
parent09683430614ca873d5cba831a8a06f296a71c897 (diff)
downloadnextcloud-server-4111f45411a2da646af5be2b731c9871737d75e4.tar.gz
nextcloud-server-4111f45411a2da646af5be2b731c9871737d75e4.zip
Merge pull request #14987 from nextcloud/tests/14962/public-folder-open
Add acceptance test for public folder navigation
-rw-r--r--tests/acceptance/features/app-files-sharing-link.feature20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/acceptance/features/app-files-sharing-link.feature b/tests/acceptance/features/app-files-sharing-link.feature
index 19f38ecc7fb..c35338fea28 100644
--- a/tests/acceptance/features/app-files-sharing-link.feature
+++ b/tests/acceptance/features/app-files-sharing-link.feature
@@ -37,6 +37,26 @@ Feature: app-files-sharing-link
And I open the Share menu
And I see that the Share menu is shown
+ Scenario: open a subfolder in a public shared folder
+ Given I act as John
+ And I am logged in
+ And I create a new folder named "Shared folder with subfolders"
+ And I enter in the folder named "Shared folder with subfolders"
+ And I create a new folder named "Subfolder"
+ And I enter in the folder named "Subfolder"
+ And I create a new folder named "Subsubfolder"
+ And I see that the file list contains a file named "Subsubfolder"
+ # The Files app is open again to reload the file list
+ And I open the Files app
+ And I share the link for "Shared folder with subfolders"
+ And I write down the shared link
+ When I act as Jane
+ And I visit the shared link I wrote down
+ And I see that the current page is the shared link I wrote down
+ Then I see that the file list contains a file named "Subfolder"
+ And I enter in the folder named "Subfolder"
+ And I see that the file list contains a file named "Subsubfolder"
+
Scenario: creation is not possible by default in a public shared folder
Given I act as John
And I am logged in