Línea 5... |
Línea 5... |
5 |
|
5 |
|
6 |
Background:
|
6 |
Background:
|
7 |
Given the following "users" exist:
|
7 |
Given the following "users" exist:
|
8 |
| username | firstname | lastname | email |
|
8 |
| username | firstname | lastname | email |
|
- |
|
9 |
| teacher1 | Teacher | One | teacher1@example.com |
|
9 |
| teacher1 | Teacher | One | teacher1@example.com |
|
10 |
| student1 | Student | One | student1@example.com |
|
10 |
And the following "courses" exist:
|
11 |
And the following "courses" exist:
|
11 |
| fullname | shortname | format |
|
12 |
| fullname | shortname | format |
|
12 |
| Course 1 | C1 | topics |
|
13 |
| Course 1 | C1 | topics |
|
13 |
And the following "course enrolments" exist:
|
14 |
And the following "course enrolments" exist:
|
14 |
| user | course | role |
|
15 |
| user | course | role |
|
- |
|
16 |
| teacher1 | C1 | editingteacher |
|
15 |
| teacher1 | C1 | editingteacher |
|
17 |
| student1 | C1 | student |
|
16 |
And the following "activities" exist:
|
18 |
And the following "activities" exist:
|
17 |
| activity | course | name | advancedgradingmethod_submissions |
|
19 |
| activity | course | name | advancedgradingmethod_submissions |
|
18 |
| assign | C1 | Assign 1 | guide |
|
20 |
| assign | C1 | Assign 1 | guide |
|
19 |
And I am on the "Course 1" course page logged in as teacher1
|
21 |
And I am on the "Course 1" course page logged in as teacher1
|
Línea 23... |
Línea 25... |
23 |
And I define the following marking guide:
|
25 |
And I define the following marking guide:
|
24 |
| Criterion name | Description for students | Description for markers | Maximum score |
|
26 |
| Criterion name | Description for students | Description for markers | Maximum score |
|
25 |
| Criterion 1 | Criterion 1 description for student | Criterion 1 description for markers | 100 |
|
27 |
| Criterion 1 | Criterion 1 description for student | Criterion 1 description for markers | 100 |
|
26 |
And I press "Save marking guide and make it ready"
|
28 |
And I press "Save marking guide and make it ready"
|
Línea -... |
Línea 29... |
- |
|
29 |
|
27 |
|
30 |
@javascript
|
28 |
Scenario: Delete a marking guide
|
31 |
Scenario: Delete a marking guide
|
- |
|
32 |
Given I am on the "Assign 1" "assign activity" page
|
- |
|
33 |
And I go to "Student One" "Assign 1" activity advanced grading page
|
- |
|
34 |
And I grade by filling the marking guide with:
|
- |
|
35 |
| Criterion 1 | 70 | Well done! |
|
29 |
Given I am on the "Course 1" course page
|
36 |
And I press "Save changes"
|
30 |
And I go to "Assign 1" advanced grading page
|
37 |
And I go to "Assign 1" advanced grading page
|
- |
|
38 |
When I click on "Delete the currently defined form" "link"
|
31 |
When I click on "Delete the currently defined form" "link"
|
39 |
Then I should see "You are going to delete the grading form 'Marking guide 1' and all the associated information from 'Assign 1 (Submissions)'"
|
32 |
And I press "Cancel"
|
40 |
And I press "Cancel"
|
33 |
# Confirm that marking guide was not deleted if Cancel is pressed
|
41 |
# Confirm that marking guide was not deleted if Cancel is pressed
|
34 |
Then I should see "Marking guide 1 Ready for use"
|
42 |
And I should see "Marking guide 1 Ready for use"
|
35 |
And I should see "Criterion 1"
|
43 |
And I should see "Criterion 1"
|
36 |
And I click on "Delete the currently defined form" "link"
|
44 |
And I click on "Delete the currently defined form" "link"
|
37 |
And I press "Continue"
|
45 |
And I press "Continue"
|
38 |
# Confirm that marking guide was deleted successfully if Continue is pressed
|
46 |
# 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."
|
47 |
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"
|
48 |
And I should not see "Marking guide 1 Ready for use"
|
- |
|
49 |
And I should not see "Criterion 1"
|
- |
|
50 |
And I am on the "Course 1" "grades > Grader report > View" page
|
- |
|
51 |
And the following should exist in the "user-grades" table:
|
- |
|
52 |
| -1- | -2- | -3- |
|