mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 09:30:17 +01:00
Merge branch 'MDL-77078-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
5f5355065a
55
mod/assign/tests/behat/submission_statement.feature
Normal file
55
mod/assign/tests/behat/submission_statement.feature
Normal file
@ -0,0 +1,55 @@
|
||||
@mod @mod_assign
|
||||
Feature: In an assignment, teacher can require submission statements
|
||||
In order to require students to accept an assignment submission statement
|
||||
As a teacher
|
||||
I 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 statement
|
||||
Given I am on the "Test assign" "assign activity" page logged in as student1
|
||||
And 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 "- Required"
|
||||
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
|
||||
Given I am on the "Test assign" "assign activity editing" page logged in as teacher1
|
||||
And 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 student1
|
||||
And 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"
|
Loading…
x
Reference in New Issue
Block a user