From 79fbab4d04ca02bf6191165ee01e7c4b386b24b9 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 16 Sep 2014 14:16:42 +0800 Subject: [PATCH] MDL-46966 core_grades: adjust behat tests Part of MDL-46797 --- grade/tests/behat/grade_aggregation.feature | 4 ++++ grade/tests/behat/grade_calculated_weights.feature | 4 ++++ grade/tests/behat/grade_view.feature | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/grade/tests/behat/grade_aggregation.feature b/grade/tests/behat/grade_aggregation.feature index fa75f4ef506..b8748ae2921 100644 --- a/grade/tests/behat/grade_aggregation.feature +++ b/grade/tests/behat/grade_aggregation.feature @@ -36,6 +36,10 @@ Feature: We can use calculated grade totals | assign | C1 | a8 | Test assignment eight | Submit something! | Sub category 2 | 200 | assign | C1 | a9 | Test assignment nine | Submit something! | Sub category 2 | 100 | assign | C1 | 10 | Test assignment ten | Submit nothing! | Sub category 2 | 150 + And I log in as "admin" + And I set the following administration settings values: + | 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 log out And I log in as "teacher1" And I follow "Course 1" And I follow "Grades" diff --git a/grade/tests/behat/grade_calculated_weights.feature b/grade/tests/behat/grade_calculated_weights.feature index 502017707a5..c2667c1057e 100644 --- a/grade/tests/behat/grade_calculated_weights.feature +++ b/grade/tests/behat/grade_calculated_weights.feature @@ -24,6 +24,10 @@ Feature: We can understand the gradebook user report | assign | C1 | a4 | Test assignment four | Submit something! | | assign | C1 | a5 | Test assignment five | Submit something! | | assign | C1 | a6 | Test assignment six | Submit something! | + And I log in as "admin" + And I set the following administration settings values: + | 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 log out And I log in as "teacher1" And I follow "Course 1" And I follow "Grades" diff --git a/grade/tests/behat/grade_view.feature b/grade/tests/behat/grade_view.feature index 8f14b2b9bf0..7b6cee991cb 100644 --- a/grade/tests/behat/grade_view.feature +++ b/grade/tests/behat/grade_view.feature @@ -17,6 +17,10 @@ Feature: We can enter in grades and view reports from the gradebook | user | course | role | | teacher1 | C1 | editingteacher | | student1 | C1 | student | + And I log in as "admin" + And I set the following administration settings values: + | 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 log out And I log in as "teacher1" And I follow "Course 1" And I turn editing mode on -- 2.11.4.GIT