Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@mod @mod_workshop @_file_uploadFeature: Provide example submissionIn order to let students practise the assessment process in the workshopAs a teacherI need to be able to define example submission and its referential assessment@javascriptScenario: Add example submission with attachments to a workshop# Prepare the users, course, enrolments and the workshop instance.Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Terry1 | Teacher1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname || Course1 | c1 |And the following "course enrolments" exist:| user | course | role || teacher1 | c1 | editingteacher |And the following "activities" exist:| activity | name | course | idnumber | useexamples || workshop | TestWorkshop | c1 | workshop1 | 1 |# As a teacher, define the assessment form to be used in the workshop.When I am on the "Course1" course page logged in as teacher1And I edit assessment form in workshop "TestWorkshop" as:| id_description__idx_0_editor | Aspect1 || id_description__idx_1_editor | Aspect2 || id_description__idx_2_editor | |# Add an example submission with an attachment.And I press "Add example submission"And I set the following fields to these values:| Title | First example submission || Submission content | Just an example but hey, it works! || Attachment | lib/tests/fixtures/empty.txt |And I press "Save changes"# Make sure that the submission was saved.Then I should see "First example submission"And I should see "Just an example but hey, it works!"And "empty.txt" "link" should exist