Your IP : 192.168.165.1


Current Path : C:/Users/Mahmood/Desktop/moodle/grade/tests/behat/
Upload File :
Current File : C:/Users/Mahmood/Desktop/moodle/grade/tests/behat/grade_scales_logging.feature

@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"