1 |
efrain |
1 |
@repository @repository_recent @_file_upload
|
|
|
2 |
Feature: Recent files repository lists the recently used files
|
|
|
3 |
In order to save time when selecting files
|
|
|
4 |
As a user
|
|
|
5 |
I need to use again the files I've just used
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Add files recently uploaded
|
|
|
9 |
Given the following "courses" exist:
|
|
|
10 |
| fullname | shortname | category |
|
|
|
11 |
| Course 1 | C1 | 0 |
|
|
|
12 |
And the following "blocks" exist:
|
|
|
13 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
|
14 |
| private_files | System | 1 | my-index | side-post |
|
|
|
15 |
And the following "activities" exist:
|
|
|
16 |
| activity | course | name | intro |
|
|
|
17 |
| folder | C1 | Folder name | Folder description |
|
|
|
18 |
And I log in as "admin"
|
|
|
19 |
And I follow "Manage private files"
|
|
|
20 |
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
|
|
|
21 |
And I upload "lib/tests/fixtures/upload_users.csv" file to "Files" filemanager
|
|
|
22 |
And I press "Save changes"
|
|
|
23 |
And I am on the "Folder name" "folder activity" page
|
|
|
24 |
And I press "Edit"
|
|
|
25 |
And I add "empty.txt" file from "Recent files" to "Files" filemanager
|
|
|
26 |
And I add "empty.txt" file from "Recent files" to "Files" filemanager as:
|
|
|
27 |
| Save as | empty_copy.txt |
|
|
|
28 |
And I press "Save changes"
|
|
|
29 |
Then I should see "empty.txt"
|
|
|
30 |
And I should see "empty_copy.txt"
|
|
|
31 |
And I should see "Folder description"
|