-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added E2E test to sort files/folders
- Loading branch information
1 parent
2c498f6
commit e963e11
Showing
4 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
Feature: Sort files/folders | ||
As a user | ||
I want to sort files/folders | ||
So that I can make the file/folder list more clear | ||
|
||
|
||
Scenario: sort files and folders | ||
Given "Admin" creates following user using API | ||
| id | | ||
| Alice | | ||
And "Alice" logs in | ||
And "Alice" creates the following resources | ||
| resource | type | | ||
| FOLDER | folder | | ||
| Folder,With,Comma | folder | | ||
| PARENT | folder | | ||
And "Alice" uploads the following resource | ||
| resource | to | | ||
| simple.pdf | FOLDER | | ||
| new-lorem-big.txt | PARENT | | ||
And "Alice" uploads the following resource | ||
| resource | | ||
| lorem.txt | | ||
| testavatar.jpg | | ||
| testavatar.jpeg | | ||
| new-data.zip | | ||
| new-'single'quotes.txt | | ||
And "Alice" opens the "files" app | ||
And "Alice" should see resources displayed in ascending order by name | ||
| resource | | ||
| FOLDER | | ||
| Folder,With,Comma | | ||
| PARENT | | ||
| lorem.txt | | ||
| new-'single'quotes.txt | | ||
| new-data.zip | | ||
| testavatar.jpeg | | ||
| testavatar.jpg | | ||
When "Alice" sorts the resources by name | ||
Then "Alice" should see resources displayed in descending order by name | ||
| resource | | ||
| testavatar.jpg | | ||
| testavatar.jpeg | | ||
| new-data.zip | | ||
| new-'single'quotes.txt | | ||
| lorem.txt | | ||
| PARENT | | ||
| Folder,With,Comma | | ||
| FOLDER | | ||
And "Alice" sorts the resources by modified date | ||
And "Alice" should see resources displayed in descending order by modified date | ||
| resources | | ||
| new-'single'quotes.txt | | ||
| new-data.zip | | ||
| testavatar.jpeg | | ||
| testavatar.jpg | | ||
| lorem.txt | | ||
| PARENT | | ||
| FOLDER | | ||
| Folder,With,Comma | | ||
And "Alice" sorts the resources by modified date | ||
And "Alice" should see resources displayed in ascending order by modified date | ||
| resources | | ||
| Folder,With,Comma | | ||
| FOLDER | | ||
| PARENT | | ||
| lorem.txt | | ||
| testavatar.jpg | | ||
| testavatar.jpeg | | ||
| new-data.zip | | ||
| new-'single'quotes.txt | | ||
And "Alice" sorts the resources by size | ||
And "Alice" should see resources displayed in descending order by size | ||
| resources | | ||
| testavatar.jpg | | ||
| FOLDER | | ||
| PARENT | | ||
| new-data.zip | | ||
| testavatar.jpeg | | ||
| new-'single'quotes.txt | | ||
| lorem.txt | | ||
| Folder,With,Comma | | ||
And "Alice" sorts the resources by size | ||
And "Alice" should see resources displayed in ascending order by size | ||
| resources | | ||
| Folder,With,Comma | | ||
| lorem.txt | | ||
| new-'single'quotes.txt | | ||
| testavatar.jpeg | | ||
| new-data.zip | | ||
| PARENT | | ||
| FOLDER | | ||
| testavatar.jpg | | ||
And "Alice" logs out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters