From 837b92897dee5c91a7a2c13fdf951dcae9816bd7 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 30 Sep 2014 17:34:04 +0800 Subject: [PATCH] MDL-47430 core_grades: rename strings in Behat tests --- grade/tests/behat/grade_scales.feature | 32 +++++++++++--------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/grade/tests/behat/grade_scales.feature b/grade/tests/behat/grade_scales.feature index 9deca6402c8..3c76991723f 100644 --- a/grade/tests/behat/grade_scales.feature +++ b/grade/tests/behat/grade_scales.feature @@ -8,7 +8,7 @@ Feature: View gradebook when scales are used Given I log in as "admin" 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,Sum of grades | + | 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 press "Add a new scale" And I set the following fields to these values: @@ -66,14 +66,8 @@ Feature: View gradebook when scales are used And I turn editing mode on @javascript - Scenario: Test displaying scales in gradebook in aggregation method Sum of grades - When I follow "Edit Course 1" - And I set the field "Aggregation" to "Sum of grades" - And I press "Save changes" - And I follow "Edit Sub category 1" - And I set the field "Aggregation" to "Sum of grades" - And I press "Save changes" - And I turn editing mode off + Scenario: Test displaying scales in gradebook in aggregation method Natural + When I turn editing mode off Then the following should exist in the "user-grades" table: | -1- | -4- | -5- | -6- | | Student 1 | A | 5.00 | 5.00 | @@ -91,9 +85,9 @@ Feature: View gradebook when scales are used And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Percentage | | Test assignment one | C | F–A | 50.00 % | - | Category total | 3.00 | 0–5 | 60.00 % | - | Course total | 3.00 | 0–5 | 60.00 % | - And I set the field "jump" to "Simple view" + | Category totalNatural. | 3.00 | 0–5 | 60.00 % | + | Course totalNatural. | 3.00 | 0–5 | 60.00 % | + And I set the field "jump" to "Set up grades layout" And the following should exist in the "grade_edit_tree_table" table: | Name | Max grade | | Test assignment one | 5.00 | @@ -106,8 +100,8 @@ Feature: View gradebook when scales are used And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Percentage | | Test assignment one | B | F–A | 75.00 % | - | Category total | 4.00 | 0–5 | 80.00 % | - | Course total | 4.00 | 0–5 | 80.00 % | + | Category totalNatural. | 4.00 | 0–5 | 80.00 % | + | Course totalNatural. | 4.00 | 0–5 | 80.00 % | @javascript Scenario Outline: Test displaying scales in gradebook in all other aggregation methods @@ -139,9 +133,9 @@ Feature: View gradebook when scales are used And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Percentage | | Test assignment one | C | F–A | 50.00 % | - | Category total | 3.00 | 1–5 | 50.00 % | - | Course total | | 0–100 | | - And I set the field "jump" to "Simple view" + | Category total. | 3.00 | 1–5 | 50.00 % | + | Course total. | | 0–100 | | + And I set the field "jump" to "Set up grades layout" And the following should exist in the "grade_edit_tree_table" table: | Name | Max grade | | Test assignment one | A (5) | @@ -154,8 +148,8 @@ Feature: View gradebook when scales are used And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Percentage | | Test assignment one | B | F–A | 75.00 % | - | Category total | 4.00 | 1–5 | 75.00 % | - | Course total | | 0–100 | | + | Category total. | 4.00 | 1–5 | 75.00 % | + | Course total. | | 0–100 | | Examples: | aggregation | coursetotal1 | coursetotal2 | coursetotal3 | coursetotal4 | coursetotal5 |overallavg | courseperc2 | courseperc3 | -- 2.43.0