Merge branch 'MDL-63968-master' of git://github.com/andrewnicols/moodle
[moodle.git] / grade / tests / behat / grade_letter_logging.feature
blobfc022277675abd76e915559217b4d2fc8d08872c
1 @core @core_grades
2 Feature: We can view the logs for any changes to grade letters.
3   In order to view changes the letter boundary of a course
4   As an administrator
5   I need to add make changes and then view the logs.
7   Scenario: I override the letter boundaries and check the logs.
8     Given the following "courses" exist:
9       | fullname | shortname | category |
10       | Course 1 | C1 | 0 |
11     And I log in as "admin"
12     And I am on "Course 1" course homepage
13     And I navigate to "Setup > Course grade settings" in the course gradebook
14     And I set the following fields to these values:
15       | Grade display type | Letter |
16     And I press "Save changes"
17     And I navigate to "Letters" in the course gradebook
18     And I follow "Edit grade letters"
19     And I set the following fields to these values:
20       | id_override | 1 |
21       | id_gradeboundary10 | 57 |
22     And I press "Save changes"
23     And I follow "Edit grade letters"
24     And I set the following fields to these values:
25       | id_override | 1 |
26       | id_gradeboundary10 | 50 |
27     And I press "Save changes"
28     And I follow "Edit grade letters"
29     And I set the following fields to these values:
30       | id_override | 1 |
31       | id_gradeletter11 | |
32       | id_gradeboundary11 | |
33     And I press "Save changes"
34     When I navigate to "Reports > Live logs" in site administration
35     Then I should see "Grade letter created"
36     And I should see "Grade letter updated"
37     And I should see "Grade letter deleted"