AutorÃa | Ultima modificación | Ver Log |
@mod @mod_assignFeature: Additional files for use in assignments can be hiddenIn order to display additional files only during submissionAs a teacherI need to check the 'Only show files during submission' checkboxBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | One | teacher1@example.com || student1 | Student | One | student1@example.com |And the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |@javascript @_file_uploadScenario: Additional files are only shown during submissionGiven the following "activities" exist:| activity | course | name | submissionattachments | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled || assign | C1 | Assign 1 | 1 | 1 | 0 |And I am on the "Assign 1" "assign activity editing" page logged in as teacher1And I upload "/mod/assign/tests/fixtures/submissionsample01.txt" file to "Additional files" filemanagerAnd I press "Save and return to course"When I am on the "Assign 1" "assign activity" page logged in as student1# Confirm that Additional files are not displayed on assignment activity when student logs in.Then "submissionsample01.txt" "link" should not existAnd I press "Add submission"# Additional files are displayed after student presses "Add submission" button and goes to submission phase.And "submissionsample01.txt" "link" should existAnd following "submissionsample01.txt" should download a file that:| Has mimetype | text/plain || Contains text | This is just a submission testing sample. |