@@ -37,24 +37,14 @@ Feature: Grades can be fetched either a real values or as percentages
3737 And I log in as "teacher1"
3838 And I am on "RefCourse" course homepage
3939 And I navigate to "Setup > Gradebook setup" in the course gradebook
40- And I set the following settings for grade item "RefCourse" :
40+ And I set the following settings for grade item "RefCourse" of type "course" on "setup" page :
4141 | Aggregation | Natural |
4242 | Exclude empty grades | 1 |
43- And I press "Add grade item"
44- And I set the following fields to these values:
45- | Item name | Manual item 1 |
46- | Maximum grade | 10 |
47- And I press "Save changes"
48- And I press "Add grade item"
49- And I set the following fields to these values:
50- | Item name | Manual item 2 |
51- | Maximum grade | 10 |
52- And I press "Save changes"
53- And I press "Add grade item"
54- And I set the following fields to these values:
55- | Item name | Manual item 3 |
56- | Maximum grade | 10 |
57- And I press "Save changes"
43+ And the following "grade items" exist:
44+ | itemname | grademax | course |
45+ | Manual item 1 | 10 | R |
46+ | Manual item 2 | 10 | R |
47+ | Manual item 3 | 10 | R |
5848 And I navigate to "Setup > Course grade settings" in the course gradebook
5949 And I set the field "Grade display type" to "Real (percentage)"
6050 #
@@ -107,12 +97,12 @@ Feature: Grades can be fetched either a real values or as percentages
10797 And I navigate to "View > Grader report" in the course gradebook
10898 And I turn editing mode off
10999 And the following should exist in the "user-grades" table:
110- | Email address | -7 - |
111- | student1 @example .com | 20 .00 (66 .67 %) |
112- | student2 @example .com | 20 .00 (100 .00 %) |
113- | student3 @example .com | 15 .00 (75 .00 %) |
114- | student4 @example .com | 0 .00 (0 .00 %) |
115- | student5 @example .com | - |
100+ | - 1 - | - 2 - | -6 - |
101+ | Student 1 | student1 @example .com | 20 .00 (66 .67 %) |
102+ | Student 2 | student2 @example .com | 20 .00 (100 .00 %) |
103+ | Student 3 | student3 @example .com | 15 .00 (75 .00 %) |
104+ | Student 4 | student4 @example .com | 0 .00 (0 .00 %) |
105+ | Student 5 | student5 @example .com | - |
116106
117107 @javascript
118108 Scenario : Grades are fetched as real values by default
@@ -125,9 +115,9 @@ Feature: Grades can be fetched either a real values or as percentages
125115 And I turn editing mode off
126116 And I am on "MainCourse" course homepage
127117 And I navigate to "Setup > Gradebook setup" in the course gradebook
128- And I click on "Edit" "link" in the "Unit course 1" "table_row"
129- And I click on "Edit settings" "link" in the "Unit course 1" "table_row"
130- And I click on "Show more..." "link"
118+ And I click on grade item menu "Unit course 1" of type "gradeitem" on "setup" page
119+ And I choose "Edit grade item" in the open action menu
120+ And I click on "Show more..." "link" in the "Edit grade item" "dialogue"
131121 And I set the following fields to these values:
132122 | Grade display type | Real (percentage ) |
133123 And I press "Save changes"
@@ -137,12 +127,12 @@ Feature: Grades can be fetched either a real values or as percentages
137127 And I am on "MainCourse" course homepage
138128 And I navigate to "View > Grader report" in the course gradebook
139129 Then the following should exist in the "user-grades" table:
140- | Email address | -4 - |
141- | student1 @example .com | 20 .00 (66 .67 %) |
142- | student2 @example .com | 20 .00 (66 .67 %) |
143- | student3 @example .com | 15 .00 (50 .00 %) |
144- | student4 @example .com | 0 .00 (0 .00 %) |
145- | student5 @example .com | - |
130+ | - 1 - | - 2 - | -3 - |
131+ | Student 1 | student1 @example .com | 20 .00 (66 .67 %) |
132+ | Student 2 | student2 @example .com | 20 .00 (66 .67 %) |
133+ | Student 3 | student3 @example .com | 15 .00 (50 .00 %) |
134+ | Student 4 | student4 @example .com | 0 .00 (0 .00 %) |
135+ | Student 5 | student5 @example .com | - |
146136
147137 @javascript
148138 Scenario : Grades can be fetched as percentual values
@@ -156,9 +146,9 @@ Feature: Grades can be fetched either a real values or as percentages
156146 And I turn editing mode off
157147 And I am on "MainCourse" course homepage
158148 And I navigate to "Setup > Gradebook setup" in the course gradebook
159- And I click on "Edit" "link" in the "Unit course 1" "table_row"
160- And I click on "Edit settings" "link" in the "Unit course 1" "table_row"
161- And I click on "Show more..." "link"
149+ And I click on grade item menu "Unit course 1" of type "gradeitem" on "setup" page
150+ And I choose "Edit grade item" in the open action menu
151+ And I click on "Show more..." "link" in the "Edit grade item" "dialogue"
162152 And I set the following fields to these values:
163153 | Grade display type | Real (percentage ) |
164154 And I press "Save changes"
@@ -168,9 +158,9 @@ Feature: Grades can be fetched either a real values or as percentages
168158 And I am on the "MainCourse" course page logged in as "teacher1"
169159 And I navigate to "View > Grader report" in the course gradebook
170160 Then the following should exist in the "user-grades" table:
171- | Email address | -4 - |
172- | student1 @example .com | 20 .00 (66 .67 %) |
173- | student2 @example .com | 30 .00 (100 .00 %) |
174- | student3 @example .com | 22 .50 (75 .00 %) |
175- | student4 @example .com | 0 .00 (0 .00 %) |
176- | student5 @example .com | - |
161+ | - 1 - | - 2 - | -3 - |
162+ | Student 1 | student1 @example .com | 20 .00 (66 .67 %) |
163+ | Student 2 | student2 @example .com | 30 .00 (100 .00 %) |
164+ | Student 3 | student3 @example .com | 22 .50 (75 .00 %) |
165+ | Student 4 | student4 @example .com | 0 .00 (0 .00 %) |
166+ | Student 5 | student5 @example .com | - |
0 commit comments