Merge branch 'MDL-36255-master' of https://github.com/lucaboesch/moodle
authorJake Dallimore <jake@moodle.com>
Tue, 21 Aug 2018 08:04:17 +0000 (16:04 +0800)
committerJake Dallimore <jake@moodle.com>
Tue, 21 Aug 2018 08:04:17 +0000 (16:04 +0800)
1  2 
grade/tests/behat/grade_category_validation.feature
grade/tests/behat/grade_hidden_items.feature
grade/tests/behat/grade_item_validation.feature
grade/tests/behat/grade_scales.feature
grade/tests/behat/grade_single_item_scales.feature

@@@ -17,11 -17,13 +17,13 @@@ Feature: Editing a grade ite
        | teacher1 | C1 | editingteacher |
        | student1 | C1 | student |
      And I log in as "admin"
 -    And I navigate to "Scales" node in "Site administration > Grades"
+     And the "multilang" filter is "on"
+     And the "multilang" filter applies to "content and headings"
 +    And I navigate to "Grades > Scales" in site administration
      And I press "Add a new scale"
      And I set the following fields to these values:
-       | Name  | ABCDEF |
-       | Scale | F,E,D,C,B,A |
+       | Name  | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> ABCDEF |
+       | Scale | F,E,D,C,B,A                                                                                   |
      And I press "Save changes"
      And I press "Add a new scale"
      And I set the following fields to these values:
@@@ -34,10 -36,10 +36,10 @@@ Feature: Student and teacher's view of 
        | Item name | calculated |
      And I press "Save changes"
      And I set "=[[a4]]/2" calculation for grade item "calculated" with idnumbers:
-       | Sub category 1 | sub1 |
+       | EN Sub category 1 | sub1 |
 -    And I navigate to "Overview report" node in "Site administration > Grades > Report settings"
 +    And I navigate to "Grades > Report settings > Overview report" in site administration
      And I set the field "s__grade_report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items"
 -    And I navigate to "User report" node in "Site administration > Grades > Report settings"
 +    And I navigate to "Grades > Report settings > User report" in site administration
      And I set the field "s__grade_report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
      And I press "Save changes"
      When I log out
@@@ -17,11 -17,13 +17,13 @@@ Feature: Grade item validatio
        | teacher1 | C1 | editingteacher |
        | student1 | C1 | student |
      And I log in as "admin"
 -    And I navigate to "Scales" node in "Site administration > Grades"
+     And the "multilang" filter is "on"
+     And the "multilang" filter applies to "content and headings"
 +    And I navigate to "Grades > Scales" in site administration
      And I press "Add a new scale"
      And I set the following fields to these values:
-       | Name  | ABCDEF |
-       | Scale | F,E,D,C,B,A |
+       | Name  | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> ABCDEF |
+       | Scale | F,E,D,C,B,A                                                                                   |
      And I press "Save changes"
      And I press "Add a new scale"
      And I set the following fields to these values:
@@@ -9,11 -11,11 +11,11 @@@ Feature: View gradebook when scales ar
      And I set the following administration settings values:
        | grade_report_showranges    | 1 |
        | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
 -    And I navigate to "Scales" node in "Site administration > Grades"
 +    And I navigate to "Grades > Scales" in site administration
      And I press "Add a new scale"
      And I set the following fields to these values:
-       | Name  | Letterscale |
-       | Scale | F,D,C,B,A   |
+       | Name  | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Letterscale |
+       | Scale | F,D,C,B,A                                                                                          |
      And I press "Save changes"
      And I log out
      And the following "courses" exist:
@@@ -9,11 -11,11 +11,11 @@@ Feature: View gradebook when single ite
      And I set the following administration settings values:
        | grade_report_showranges    | 1 |
        | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
 -    And I navigate to "Scales" node in "Site administration > Grades"
 +    And I navigate to "Grades > Scales" in site administration
      And I press "Add a new scale"
      And I set the following fields to these values:
-       | Name  | Singleitem |
-       | Scale | Ace!       |
+       | Name  | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Singleitem |
+       | Scale | Ace!                                                                                              |
      And I press "Save changes"
      And I log out
      And the following "courses" exist: