moodle/repository/upload/tests/behat/upload_file.feature
David Monllao 2904bf9ddf MDL-38620 behat: New test
According to MDLQA-1175; test
removed from repository_upload as
is included in MDLQA-1175 test
2013-03-28 11:19:07 +08:00

18 lines
597 B
Gherkin

@repository_upload @core_form @repository @_only_local
Feature: Upload files
In order to add contents
As a moodle user
I need to upload files
@javascript
Scenario: Upload a file in a multiple file filepicker
Given the following "courses" exists:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I log in as "admin"
And I follow "Admin User"
And I follow "My private files"
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filepicker
Then I should see "empty.txt" in the "div.fp-content" "css_element"
And I press "Cancel"