11 |
efrain |
1 |
@gradingform @gradingform_guide
|
|
|
2 |
Feature: Teacher can edit a marking guide state
|
|
|
3 |
In order to change marking guide back to draft
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to be able to edit the marking guide status
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname |
|
|
|
13 |
| Course 1 | C1 |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
And the following "activities" exist:
|
|
|
18 |
| activity | course | name | advancedgradingmethod_submissions |
|
|
|
19 |
| assign | C1 | Assign 1 | guide |
|
|
|
20 |
|
|
|
21 |
Scenario: Marking guide state can be changed to draft
|
|
|
22 |
Given I am on the "Course 1" course page logged in as teacher1
|
|
|
23 |
And I go to "Assign 1" advanced grading definition page
|
|
|
24 |
And I set the following fields to these values:
|
|
|
25 |
| Name | Assign 1 marking guide |
|
|
|
26 |
| Description | Marking guide description |
|
|
|
27 |
And I define the following marking guide:
|
|
|
28 |
| Criterion name | Description for students | Description for markers | Maximum score |
|
|
|
29 |
| Grade Criteria 1 | Grade 1 description for students | Grade 1 description for markers | 70 |
|
|
|
30 |
| Grade Criteria 2 | Grade 2 description for students | Grade 2 description for markers | 30 |
|
|
|
31 |
And I press "Save marking guide and make it ready"
|
|
|
32 |
And I should not see "Please note: the advanced grading form is not ready at the moment. Simple grading method will be used until the form has a valid status."
|
|
|
33 |
And I should not see "Assign 1 marking guide Draft"
|
|
|
34 |
And I should see "Assign 1 marking guide Ready for use"
|
|
|
35 |
And I click on "Edit the current form definition" "link"
|
|
|
36 |
When I press "Save as draft"
|
|
|
37 |
Then I should see "Please note: the advanced grading form is not ready at the moment. Simple grading method will be used until the form has a valid status."
|
|
|
38 |
And I should see "Assign 1 marking guide Draft"
|
|
|
39 |
And I should not see "Assign 1 marking guide Ready for use"
|