Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/grade/tests/behat/grade_natural_normalisation.feature

    r136 r1331  
    1111    And the following "users" exist:
    1212      | username | firstname | lastname | email | idnumber |
    13       | teacher1 | Teacher | 1 | teacher1@asd.com | t1 |
    14       | student1 | Student | 1 | student1@asd.com | s1 |
     13      | teacher1 | Teacher | 1 | teacher1@example.com | t1 |
     14      | student1 | Student | 1 | student1@example.com | s1 |
    1515    And the following "course enrolments" exist:
    1616      | user | course | role |
     
    3333    And I log in as "teacher1"
    3434    And I follow "Course 1"
    35     And I follow "Grades"
    36     And I set the field "Grade report" to "Categories and items"
     35    And I navigate to "Grades" node in "Course administration"
     36    And I set the field "Grade report" to "Gradebook setup"
    3737
    3838  @javascript
     
    9898
    9999  @javascript
    100   Scenario: Grade items weights are normalised when all grade item weights are overridden (sum exactly 100). Extra credit is set to zero.
     100  Scenario: Grade items weights are not normalised when all grade item weights are overridden (sum exactly 100). Extra credit is set respectful to number of items.
    101101
    102102    When I set the following settings for grade item "Test assignment seven":
     
    111111    And I press "Save changes"
    112112
    113     Then I should see "Your weights have been adjusted to total 100."
     113    Then I should not see "Your weights have been adjusted to total 100."
    114114    And the field "Weight of Test assignment five" matches value "60.000"
    115115    And the field "Weight of Test assignment six" matches value "40.000"
    116     And the field "Weight of Test assignment seven" matches value "0.0"
    117     And I reset weights for grade category "Sub category 1"
    118     And the field "Weight of Test assignment five" matches value "66.667"
    119     And the field "Weight of Test assignment six" matches value "33.333"
    120     And the field "Weight of Test assignment seven" matches value "50.0"
    121 
    122   @javascript
    123   Scenario: Grade items weights are normalised when all grade item weights are overridden (sum over 100). Extra credit is set to zero.
     116    And the field "Weight of Test assignment seven" matches value "50.0"
     117    And I reset weights for grade category "Sub category 1"
     118    And the field "Weight of Test assignment five" matches value "66.667"
     119    And the field "Weight of Test assignment six" matches value "33.333"
     120    And the field "Weight of Test assignment seven" matches value "50.0"
     121
     122  @javascript
     123  Scenario: Grade items weights are normalised when all grade item weights are overridden (sum over 100). Extra credit is set respectful to number of items.
    124124
    125125    When I set the following settings for grade item "Test assignment seven":
     
    134134    And the field "Weight of Test assignment five" matches value "54.545"
    135135    And the field "Weight of Test assignment six" matches value "45.455"
    136     And the field "Weight of Test assignment seven" matches value "0.0"
    137     And I reset weights for grade category "Sub category 1"
    138     And the field "Weight of Test assignment five" matches value "66.667"
    139     And the field "Weight of Test assignment six" matches value "33.333"
    140     And the field "Weight of Test assignment seven" matches value "50.0"
    141 
    142   @javascript
    143   Scenario: Grade items weights are normalised when all grade item weights are overridden (sum under 100). Extra credit is set to zero.
     136    And the field "Weight of Test assignment seven" matches value "50.0"
     137    And I reset weights for grade category "Sub category 1"
     138    And the field "Weight of Test assignment five" matches value "66.667"
     139    And the field "Weight of Test assignment six" matches value "33.333"
     140    And the field "Weight of Test assignment seven" matches value "50.0"
     141
     142  @javascript
     143  Scenario: Grade items weights are normalised when all grade item weights are overridden (sum under 100). Extra credit is set respectful to number of items.
    144144
    145145    When I set the following settings for grade item "Test assignment seven":
     
    154154    And the field "Weight of Test assignment five" matches value "57.143"
    155155    And the field "Weight of Test assignment six" matches value "42.857"
    156     And the field "Weight of Test assignment seven" matches value "0.0"
    157     And I reset weights for grade category "Sub category 1"
    158     And the field "Weight of Test assignment five" matches value "66.667"
    159     And the field "Weight of Test assignment six" matches value "33.333"
    160     And the field "Weight of Test assignment seven" matches value "50.0"
    161 
    162   @javascript
    163   Scenario: Grade items weights are normalised when not all grade item weights are overridden. Extra credit is set respectful to non-overridden items.
     156    And the field "Weight of Test assignment seven" matches value "50.0"
     157    And I reset weights for grade category "Sub category 1"
     158    And the field "Weight of Test assignment five" matches value "66.667"
     159    And the field "Weight of Test assignment six" matches value "33.333"
     160    And the field "Weight of Test assignment seven" matches value "50.0"
     161
     162  @javascript
     163  Scenario: Grade items weights are normalised when not all grade item weights are overridden. Extra credit is set respectful to number of items.
    164164
    165165    When I set the following settings for grade item "Test assignment seven":
     
    172172    And the field "Weight of Test assignment five" matches value "40.00"
    173173    And the field "Weight of Test assignment six" matches value "60.000"
    174     And the field "Weight of Test assignment seven" matches value "90.0"
     174    And the field "Weight of Test assignment seven" matches value "50.0"
    175175    And I reset weights for grade category "Sub category 1"
    176176    And the field "Weight of Test assignment five" matches value "66.667"
Note: See TracChangeset for help on using the changeset viewer.