moodle/grade/tests/behat/grade_scales_logging.feature
Víctor Déniz Falcón 02fda279ed MDL-57281 behat: deprecated step definition I navigate to node in
Definition step deprecated and affected tests modified.
2018-08-20 12:53:26 +01:00

28 lines
959 B
Gherkin

@core @core_grades
Feature: We can view the logs for any changes to grade scales.
In order to view changes grade scales
As an administrator
I need to add make changes and then view the logs.
Scenario: I edit scales and then view the logs.
Given I log in as "admin"
And I navigate to "Grades > Scales" in site administration
# Add a scale
And I press "Add a new scale"
And I set the following fields to these values:
| Name | Letterscale |
| Scale | F,D,C,B,A |
And I press "Save changes"
# Delete first scale
And I follow "Delete"
And I press "Continue"
# Edit first scale
And I follow "Edit"
And I set the following fields to these values:
| id_scale | ONE,TWO,THREE |
And I press "Save changes"
When I navigate to "Reports > Live logs" in site administration
Then I should see "Scale created"
And I should see "Scale updated"
And I should see "Scale deleted"