[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_filepicker @repository @repository_user @_file_upload 2 Feature: Create shortcuts 3 In order to automatically synchronize copies of the file with the source 4 As a teacher 5 I need to be able to pick file as a shortcut 6 7 @javascript @_bug_phantomjs 8 Scenario: Upload a file as a copy and as a shortcut in filemanager 9 Given the following "users" exist: 10 | username | firstname | lastname | email | 11 | teacher1 | Terry | Teacher | teacher1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 When I log in as "teacher1" 19 And I follow "Manage private files" 20 And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager 21 Then I should see "empty.txt" in the "div.fp-content" "css_element" 22 And I press "Save changes" 23 And I am on site homepage 24 And I follow "Course 1" 25 And I turn editing mode on 26 And I add a "Folder" to section "1" 27 And I set the following fields to these values: 28 | Name | Test folder | 29 | Description | Test folder description | 30 And I add "empty.txt" file from "Private files" to "Files" filemanager 31 And I should see "1" elements in "Files" filemanager 32 And I should see "empty.txt" in the ".fp-content .fp-file" "css_element" 33 And ".fp-content .fp-file.fp-isreference" "css_element" should not exist 34 And I add "empty.txt" file from "Private files" to "Files" filemanager as: 35 | Save as | empty_ref.txt | 36 | Create an alias/shortcut to the file | 1 | 37 And I should see "2" elements in "Files" filemanager 38 And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element" 39 And I press "Save and display" 40 And I should see "empty.txt" 41 And I should see "empty_ref.txt" 42 And I press "Edit" 43 And I should see "2" elements in "Files" filemanager 44 And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element" 45 # ------ Overwriting the reference with a non-reference --------- 46 And I add and overwrite "empty.txt" file from "Private files" to "Files" filemanager as: 47 | Save as | empty_ref.txt | 48 And I should see "2" elements in "Files" filemanager 49 And ".fp-content .fp-file.fp-isreference" "css_element" should not exist 50 And I press "Save changes" 51 And I should see "empty.txt" 52 And I should see "empty_ref.txt" 53 And I press "Edit" 54 And I should see "2" elements in "Files" filemanager 55 And ".fp-content .fp-file.fp-isreference" "css_element" should not exist 56 # ------ Overwriting non-reference with a reference --------- 57 And I add and overwrite "empty.txt" file from "Private files" to "Files" filemanager as: 58 | Save as | empty_ref.txt | 59 | Create an alias/shortcut to the file | 1 | 60 And I should see "2" elements in "Files" filemanager 61 And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element" 62 And I press "Save changes" 63 And I should see "empty.txt" 64 And I should see "empty_ref.txt" 65 And I press "Edit" 66 And I should see "2" elements in "Files" filemanager 67 And I should see "empty_ref.txt" in the ".fp-content .fp-file.fp-isreference" "css_element"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |