MDL-46966 core_grades: adjust behat tests

Part of MDL-46797
This commit is contained in:
Marina Glancy 2014-09-16 14:16:42 +08:00 committed by Adrian Greeve
parent 276690035f
commit 79fbab4d04
3 changed files with 12 additions and 0 deletions

View File

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

View File

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

View File

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