@@ -200,7 +200,7 @@ Feature: Syncing files
200200 | simple -folder /simple .pdf | Blacklisted | Brian Murphy @%local_server_hostname % |
201201
202202
203- Scenario : Sync a received shared folder with Editor permission role
203+ Scenario : Sync a received shared folder with Editor permission role
204204 Given user "Brian" has been created in the server with default attributes
205205 And user "Alice" has created folder "simple-folder" in the server
206206 And user "Alice" has uploaded file with content "test content" to "simple-folder/uploaded-lorem.txt" in the server
@@ -227,7 +227,7 @@ Feature: Syncing files
227227 And user "Alice" has created folder "Öü" in the server
228228 And user "Alice" has uploaded file with content "openCloud test" to "Öü/testFile.txt" in the server
229229 When user "Alice" creates a folder "Öü" inside the sync folder
230- When user "Alice" creates a file "Öü/newfile.txt" with the following content inside the sync folder
230+ And user "Alice" creates a file "Öü/newfile.txt" with the following content inside the sync folder
231231 """
232232 test content
233233 """
@@ -238,3 +238,50 @@ Feature: Syncing files
238238 And as user "Alice" folder "/" should contain "1" items in the server
239239 And as "Alice" file "Öü/testFile.txt" should exist in the server
240240 And as "Alice" file "Öü/newfile.txt" should exist in the server
241+
242+ @issue-1127 @skip
243+ Scenario : Existing hidden files are downloaded when sync of hidden files is enabled
244+ Given user "Alice" has uploaded file with content "hidden content" to "/.hidden-file.txt" in the server
245+ And user "Alice" has created folder "folder/subfolder" in the server
246+ And user "Alice" has uploaded file with content "hidden in folder" to "/folder/.hidden-in-folder.txt" in the server
247+ And user "Alice" has uploaded file with content "hidden in subfolder" to "/folder/subfolder/.hidden-in-subfolder.txt" in the server
248+ And user "Alice" has set up a client with default settings
249+ # hidden files are ignored by default, so they must not be downloaded yet
250+ Then the file ".hidden-file.txt" should not exist on the file system
251+ And the file "folder/.hidden-in-folder.txt" should not exist on the file system
252+ And the file "folder/subfolder/.hidden-in-subfolder.txt" should not exist on the file system
253+ When the user enables sync of hidden files in the settings
254+ And the user opens the account "Alice"
255+ And the user force syncs the files
256+ And the user waits for the files to sync
257+ Then the file ".hidden-file.txt" should exist on the file system with the following content
258+ """
259+ hidden content
260+ """
261+ And the file "folder/.hidden-in-folder.txt" should exist on the file system with the following content
262+ """
263+ hidden in folder
264+ """
265+ And the file "folder/subfolder/.hidden-in-subfolder.txt" should exist on the file system with the following content
266+ """
267+ hidden in subfolder
268+ """
269+
270+
271+ Scenario : Hidden files are downloaded when sync of hidden files is enabled
272+ Given user "Alice" has created folder "folder" in the server
273+ And user "Alice" has set up a client with default settings
274+ When the user enables sync of hidden files in the settings
275+ And the user opens the account "Alice"
276+ And user "Alice" uploads file with content "hidden content" to "/.hidden-file.txt" in the server
277+ And user "Alice" uploads file with content "hidden in folder" to "/folder/.hidden-in-folder.txt" in the server
278+ And the user force syncs the files
279+ And the user waits for the files to sync
280+ Then the file ".hidden-file.txt" should exist on the file system with the following content
281+ """
282+ hidden content
283+ """
284+ And the file "folder/.hidden-in-folder.txt" should exist on the file system with the following content
285+ """
286+ hidden in folder
287+ """
0 commit comments