1 |
efrain |
1 |
@gradingform @gradingform_guide
|
|
|
2 |
Feature: Teacher can delete marking guide
|
|
|
3 |
As a teacher,
|
|
|
4 |
I should be able to delete a marking guide
|
|
|
5 |
|
|
|
6 |
Background:
|
|
|
7 |
Given the following "users" exist:
|
|
|
8 |
| username | firstname | lastname | email |
|
|
|
9 |
| teacher1 | Teacher | One | teacher1@example.com |
|
|
|
10 |
And the following "courses" exist:
|
|
|
11 |
| fullname | shortname | format |
|
|
|
12 |
| Course 1 | C1 | topics |
|
|
|
13 |
And the following "course enrolments" exist:
|
|
|
14 |
| user | course | role |
|
|
|
15 |
| teacher1 | C1 | editingteacher |
|
|
|
16 |
And the following "activities" exist:
|
|
|
17 |
| activity | course | name | advancedgradingmethod_submissions |
|
|
|
18 |
| assign | C1 | Assign 1 | guide |
|
|
|
19 |
And I am on the "Course 1" course page logged in as teacher1
|
|
|
20 |
And I go to "Assign 1" advanced grading definition page
|
|
|
21 |
And I set the following fields to these values:
|
|
|
22 |
| Name | Marking guide 1 |
|
|
|
23 |
And I define the following marking guide:
|
|
|
24 |
| Criterion name | Description for students | Description for markers | Maximum score |
|
|
|
25 |
| Criterion 1 | Criterion 1 description for student | Criterion 1 description for markers | 100 |
|
|
|
26 |
And I press "Save marking guide and make it ready"
|
|
|
27 |
|
|
|
28 |
Scenario: Delete a marking guide
|
|
|
29 |
Given I am on the "Course 1" course page
|
|
|
30 |
And I go to "Assign 1" advanced grading page
|
|
|
31 |
When I click on "Delete the currently defined form" "link"
|
|
|
32 |
And I press "Cancel"
|
|
|
33 |
# Confirm that marking guide was not deleted if Cancel is pressed
|
|
|
34 |
Then I should see "Marking guide 1 Ready for use"
|
|
|
35 |
And I should see "Criterion 1"
|
|
|
36 |
And I click on "Delete the currently defined form" "link"
|
|
|
37 |
And I press "Continue"
|
|
|
38 |
# Confirm that marking guide was deleted successfully if Continue is pressed
|
|
|
39 |
And 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."
|
|
|
40 |
And I should not see "Marking guide 1 Ready for use"
|
|
|
41 |
And I should not see "Criterion 1"
|