AutorÃa | Ultima modificación | Ver Log |
@mod @mod_assignFeature: In an assignment, teacher can require submission statementsIn order to require students to accept an assignment submission statementAs a teacherI need to enable "Require that students accept the submission statement"Background:Given the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "users" exist:| username | firstname | lastname | email || teacher1 | Terry | Teacher | teacher1@example.com || student1 | Sam | Student | student1@example.com |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |And the following "activity" exists:| activity | assign || course | C1 || name | Test assign || submissiondrafts | 1 || requiresubmissionstatement | 1 || assignsubmission_onlinetext_enabled | 1 |Scenario: Student is required to accept assignment submission statementGiven I am on the "Test assign" "assign activity" page logged in as student1And I press "Add submission"And I set the field "Online text" to "My submission text."And I press "Save changes"And I should see "Draft (not submitted)" in the "Submission status" "table_row"When I press "Submit assignment"Then I should see "This submission is my own work, except where I have acknowledged the use of the works of other people."And I press "Continue"And I should see "Confirm submission"And I should see "You are required to agree to this statement before you can submit."And I set the field "submissionstatement" to "1"And I press "Continue"And I should see "Submitted for grading" in the "Submission status" "table_row"Scenario: Student is not required to accept assignment submission statement when non existsGiven the following config values are set as admin:| config | value | plugin || submissionstatement | | assign |And I am on the "Test assign" "assign activity" page logged in as student1When I press "Add submission"And I set the field "Online text" to "My submission text."And I press "Save changes"And I should see "Draft (not submitted)" in the "Submission status" "table_row"And I press "Submit assignment"And I press "Continue"Then I should see "Submitted for grading" in the "Submission status" "table_row"Scenario: Student is not required to accept assignment submission statementGiven I am on the "Test assign" "assign activity editing" page logged in as teacher1And I set the following fields to these values:| Require that students accept the submission statement | No |And I press "Save and display"And I am on the "Test assign" "assign activity" page logged in as student1And I press "Add submission"And I set the field "Online text" to "My submission text."And I press "Save changes"And I should see "Draft (not submitted)" in the "Submission status" "table_row"When I press "Submit assignment"Then I should not see "This submission is my own work, except where I have acknowledged the use of the works of other people."And I press "Continue"And I should see "Submitted for grading" in the "Submission status" "table_row"