Skip to content

Commit

Permalink
[tests-only]Added tests for folder creation and syncing (part 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Talank committed Dec 15, 2021
1 parent c8dd64d commit 6ba4e4f
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion test/gui/tst_syncing/test.feature
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Feature: Syncing files
And as "Alice" folder "Folder1/subFolder1/subFolder2" should exist on the server

@skip @issue-9281
Scenario: Filenames that are rejected by the server are reported
Scenario: Filenames that are rejected by the server are reported
Given user "Alice" has set up a client with default settings
And user "Alice" has created a folder "Folder1" inside the sync folder
When user "Alice" creates a file "Folder1/a\\a.txt" with the following content inside the sync folder
Expand All @@ -257,3 +257,38 @@ Feature: Syncing files
When the user clicks on the activity tab
And the user selects "Not Synced" tab in the activity
Then the file "Folder1/a\\a.txt" should be blacklisted


Scenario Outline: Verify one empty folder with a length longer than the allowed limit will not be synced
Given user "Alice" has set up a client with default settings
And user "Alice" has created a folder "<foldername>" inside the sync folder
When user "Alice" creates a folder "<foldername>/<foldername>" inside the sync folder
And user "Alice" creates a folder "<foldername>/<foldername>/<foldername>" inside the sync folder
And user "Alice" creates a folder "<foldername>/<foldername>/<foldername>/<foldername>" inside the sync folder
And user "Alice" creates a folder "<foldername>/<foldername>/<foldername>/<foldername>/<foldername>" inside the sync folder
And the user waits for folder "<foldername>/<foldername>/<foldername>/<foldername>/<foldername>" to be synced
Then as "Alice" folder "<foldername>" should exist on the server
And as "Alice" folder "<foldername>/<foldername>" should exist on the server
And as "Alice" folder "<foldername>/<foldername>/<foldername>" should exist on the server
And as "Alice" folder "<foldername>/<foldername>/<foldername>/<foldername>" should exist on the server
And as "Alice" folder "<foldername>/<foldername>/<foldername>/<foldername>/<foldername>" should exist on the server
Examples:
| foldername |
| An empty folder which name is obviously more than 59 characters |

@current
Scenario: Invalid system names are synced in linux
Given user "Alice" has set up a client with default settings
And user "Alice" has created folder "COM" on the server
And user "Alice" has created folder "test%" on the server
And user "Alice" has uploaded file on the server with content "server content" to "/PRN"
And user "Alice" has uploaded file on the server with content "server content" to "/foo%"
When the user waits for the files to sync
Then the folder "COM" should exist on the file system
And the folder "test%" should exist on the file system
And the file "PRN" should exist on the file system
And the file "foo%" should exist on the file system
And as "Alice" folder "COM" should exist on the server
And as "Alice" folder "test%" should exist on the server
And as "Alice" file "/PRN" should exist on the server
And as "Alice" file "/foo%" should exist on the server

0 comments on commit 6ba4e4f

Please sign in to comment.