[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_filepicker @_file_upload 2 Feature: A selected file can be cancelled 3 In order to refine the file manager contents 4 As a user 5 I need to cancel a selected file 6 7 @javascript @_bug_phantomjs 8 Scenario: Cancel a selected recent file from being added to a folder 9 Given the following "courses" exist: 10 | fullname | shortname | category | 11 | Course 1 | C1 | 0 | 12 And I log in as "admin" 13 And I follow "Manage private files" 14 And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager 15 And I press "Save changes" 16 And I am on site homepage 17 And I follow "Course 1" 18 And I turn editing mode on 19 When I add a "Folder" to section "1" 20 And I set the following fields to these values: 21 | Name | Folder name | 22 | Description | Folder description | 23 And I upload "lib/tests/fixtures/upload_users.csv" file to "Files" filemanager 24 And I click on "#fitem_id_files .fp-btn-add a" "css_element" 25 And I click on "Recent files" "link" in the ".fp-repo-area" "css_element" 26 And I click on "//a[contains(concat(' ', normalize-space(@class), ' '), ' fp-file ')][normalize-space(.)='empty.txt']" "xpath_element" 27 And I click on ".moodle-dialogue-focused .fp-select .fp-select-cancel" "css_element" 28 And I click on ".moodle-dialogue-focused.filepicker .yui3-button.closebutton" "css_element" 29 And I press "Save and display" 30 Then I should see "upload_users.csv" 31 And I should not see "empty.txt" 32 And I should see "Folder description"
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 |