-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test-only]download image file from editor (#10637)
* download image file from editor * Update download.feature
- Loading branch information
1 parent
891c7c7
commit b26584a
Showing
5 changed files
with
87 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Feature: Download | ||
As a user | ||
I want to download resources | ||
|
||
|
||
Background: | ||
Given "Admin" creates following user using API | ||
| id | | ||
| Alice | | ||
| Brian | | ||
|
||
|
||
Scenario: download resources | ||
When "Alice" logs in | ||
And "Alice" creates the following folders in personal space using API | ||
| name | | ||
| folderPublic | | ||
| emptyFolder | | ||
And "Alice" creates the following files into personal space using API | ||
| pathToFile | content | | ||
| folderPublic/lorem.txt | lorem ipsum | | ||
And "Alice" uploads the following local file into personal space using API | ||
| localFile | to | | ||
| filesForUpload/testavatar.jpg | testavatar.jpg | | ||
And "Alice" shares the following resource using API | ||
| resource | recipient | type | role | | ||
| folderPublic | Brian | user | Can edit | | ||
| emptyFolder | Brian | user | Can edit | | ||
| testavatar.jpg | Brian | user | Can edit | | ||
|
||
When "Alice" opens the "files" app | ||
And "Alice" downloads the following resources using the batch action | ||
| resource | type | | ||
| folderPublic | folder | | ||
| emptyFolder | folder | | ||
| testavatar.jpg | file | | ||
And "Alice" opens the following file in mediaviewer | ||
| resource | | ||
| testavatar.jpg | | ||
And "Alice" downloads the following image from the mediaviewer | ||
| resource | | ||
| testavatar.jpg | | ||
And "Alice" closes the file viewer | ||
And "Alice" logs out | ||
|
||
And "Brian" logs in | ||
And "Brian" navigates to the shared with me page | ||
And "Brian" downloads the following resources using the batch action | ||
| resource | type | | ||
| folderPublic | folder | | ||
| emptyFolder | folder | | ||
| testavatar.jpg | file | | ||
And "Brian" downloads the following resources using the sidebar panel | ||
| resource | from | type | | ||
| lorem.txt | folderPublic | file | | ||
| testavatar.jpg | | file | | ||
| folderPublic | | folder | | ||
| emptyFolder | | folder | | ||
And "Brian" opens the following file in mediaviewer | ||
| resource | | ||
| testavatar.jpg | | ||
And "Brian" downloads the following image from the mediaviewer | ||
| resource | | ||
| testavatar.jpg | | ||
And "Brian" 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