| 1 | efrain | 1 | @core @core_grades @javascript
 | 
        
           |  |  | 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.
 | 
        
           |  |  | 6 |   | 
        
           |  |  | 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 am on the "Course 1" "grades > course grade settings" page logged in as "admin"
 | 
        
           |  |  | 12 |     And I set the following fields to these values:
 | 
        
           |  |  | 13 |       | Grade display type | Letter |
 | 
        
           |  |  | 14 |     And I press "Save changes"
 | 
        
           |  |  | 15 |     And I navigate to "More > Grade letters" in the course gradebook
 | 
        
           |  |  | 16 |     And I click on "Edit" "button"
 | 
        
           |  |  | 17 |     And I set the following fields to these values:
 | 
        
           |  |  | 18 |       | Override site defaults   | 1  |
 | 
        
           |  |  | 19 |       | Letter grade boundary 10 | 57 |
 | 
        
           |  |  | 20 |     And I press "Save changes"
 | 
        
           |  |  | 21 |     And I click on "Edit" "button"
 | 
        
           |  |  | 22 |     And I set the following fields to these values:
 | 
        
           |  |  | 23 |       | Override site defaults   | 1  |
 | 
        
           |  |  | 24 |       | Letter grade boundary 10 | 50 |
 | 
        
           |  |  | 25 |     And I press "Save changes"
 | 
        
           |  |  | 26 |     And I click on "Edit" "button"
 | 
        
           |  |  | 27 |     And I set the following fields to these values:
 | 
        
           |  |  | 28 |       | Override site defaults   | 1  |
 | 
        
           |  |  | 29 |       | Grade letter 11          |    |
 | 
        
           |  |  | 30 |       | Letter grade boundary 11 |    |
 | 
        
           |  |  | 31 |     And I press "Save changes"
 | 
        
           |  |  | 32 |     When I navigate to "Reports > Live logs" in site administration
 | 
        
           |  |  | 33 |     Then I should see "Grade letter created"
 | 
        
           |  |  | 34 |     And I should see "Grade letter updated"
 | 
        
           |  |  | 35 |     And I should see "Grade letter deleted"
 |