AutorÃa | Ultima modificación | Ver Log |
@mod @mod_resource @_file_uploadFeature: Details of uploaded file in the resource can be changedIn order to change details of an uploaded file in a folder resourceAs a teacherI should be able to upload a fileBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | t1@example.com |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "activities" exist:| activity | course | name || folder | C1 | Folder1 |@javascriptScenario: Uploaded file details can be changedGiven I am on the "Folder1" "folder activity" page logged in as teacher1And I click on "Edit" "button"# Upload a file in folder resourceAnd I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanagerAnd I press "Save changes"And I click on "Edit" "button"And I click on "empty.txt" "link"# Initially, file details are set to default valuesAnd the following fields match these values:| Name | empty.txt || Author | Teacher 1 || licence | Licence not specified |# Update the file details for testingWhen I set the following fields to these values:| Name | empty_file.txt || Author | Teacher 1 || licence | All rights reserved |And I press "Update"And I press "Save changes"# Confirm that file details have been updated correctlyAnd I click on "Edit" "button"And I click on "empty_file.txt" "link"Then the following fields match these values:| Name | empty_file.txt || Author | Teacher 1 || licence | All rights reserved |