@@ -41,6 +41,71 @@ Feature: app-files
4141 And I open the Share menu
4242 Then I see that the Share menu is shown
4343
44+ Scenario : creation is not possible by default in a public shared folder
45+ Given I act as John
46+ And I am logged in
47+ And I create a new folder named "Shared folder"
48+ # To share the link the "Share" inline action has to be clicked but, as the
49+ # details view is opened automatically when the folder is created, clicking
50+ # on the inline action could fail if it is covered by the details view due
51+ # to its opening animation. Instead of ensuring that the animations of the
52+ # contents and the details view have both finished it is easier to close the
53+ # details view and wait until it is closed before continuing.
54+ And I close the details view
55+ And I see that the details view is closed
56+ And I share the link for "Shared folder"
57+ And I write down the shared link
58+ When I act as Jane
59+ And I visit the shared link I wrote down
60+ And I see that the current page is the shared link I wrote down
61+ And I see that the file list is eventually loaded
62+ Then I see that it is not possible to create new files
63+
64+ Scenario : create folder in a public editable shared folder
65+ Given I act as John
66+ And I am logged in
67+ And I create a new folder named "Editable shared folder"
68+ # To share the link the "Share" inline action has to be clicked but, as the
69+ # details view is opened automatically when the folder is created, clicking
70+ # on the inline action could fail if it is covered by the details view due
71+ # to its opening animation. Instead of ensuring that the animations of the
72+ # contents and the details view have both finished it is easier to close the
73+ # details view and wait until it is closed before continuing.
74+ And I close the details view
75+ And I see that the details view is closed
76+ And I share the link for "Editable shared folder"
77+ And I set the shared link as editable
78+ And I write down the shared link
79+ When I act as Jane
80+ And I visit the shared link I wrote down
81+ And I see that the current page is the shared link I wrote down
82+ And I create a new folder named "Subfolder"
83+ Then I see that the file list contains a file named "Subfolder"
84+
85+ Scenario : owner sees folder created in the public page of an editable shared folder
86+ Given I act as John
87+ And I am logged in
88+ And I create a new folder named "Editable shared folder"
89+ # To share the link the "Share" inline action has to be clicked but, as the
90+ # details view is opened automatically when the folder is created, clicking
91+ # on the inline action could fail if it is covered by the details view due
92+ # to its opening animation. Instead of ensuring that the animations of the
93+ # contents and the details view have both finished it is easier to close the
94+ # details view and wait until it is closed before continuing.
95+ And I close the details view
96+ And I see that the details view is closed
97+ And I share the link for "Editable shared folder"
98+ And I set the shared link as editable
99+ And I write down the shared link
100+ And I act as Jane
101+ And I visit the shared link I wrote down
102+ And I see that the current page is the shared link I wrote down
103+ And I create a new folder named "Subfolder"
104+ And I see that the file list contains a file named "Subfolder"
105+ When I act as John
106+ And I enter in the folder named "Editable shared folder"
107+ Then I see that the file list contains a file named "Subfolder"
108+
44109 Scenario : set a password to a shared link
45110 Given I am logged in
46111 And I share the link for "welcome.txt"
0 commit comments