moodle/grade/tests/behat/grade_letter_logging.feature
Angelia Dela Cruz efb38571e5 MDL-78684 Behat: Replace gradebook navigation to use page resolvers
This commit also does other things such as:
- Replace manual steps to setup gradebook by data generators
- Added support for outcomes and scales page resolvers
- Behat clean up
2023-08-01 15:55:33 +08:00

35 lines
1.5 KiB
Gherkin

@core @core_grades @javascript
Feature: We can view the logs for any changes to grade letters.
In order to view changes the letter boundary of a course
As an administrator
I need to add make changes and then view the logs.
Scenario: I override the letter boundaries and check the logs.
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And I am on the "Course 1" "grades > course grade settings" page logged in as "admin"
And I set the following fields to these values:
| Grade display type | Letter |
And I press "Save changes"
And I navigate to "More > Grade letters" in the course gradebook
And I click on "Edit" "button"
And I set the following fields to these values:
| Override site defaults | 1 |
| Letter grade boundary 10 | 57 |
And I press "Save changes"
And I click on "Edit" "button"
And I set the following fields to these values:
| Override site defaults | 1 |
| Letter grade boundary 10 | 50 |
And I press "Save changes"
And I click on "Edit" "button"
And I set the following fields to these values:
| Override site defaults | 1 |
| Grade letter 11 | |
| Letter grade boundary 11 | |
And I press "Save changes"
When I navigate to "Reports > Live logs" in site administration
Then I should see "Grade letter created"
And I should see "Grade letter updated"
And I should see "Grade letter deleted"