@@ -108,8 +108,8 @@ Feature: Course index completion icons
108
108
| questioncategory | qtype | name | questiontext |
109
109
| Test questions | truefalse | First question | Answer the first question |
110
110
And the following "activities" exist:
111
- | activity | name | course | idnumber | attempts | gradepass | completion | completionusegrade | completionpass | completionattemptsexhausted |
112
- | quiz | Test quiz name | C1 | quiz1 | 1 | 5 .00 | 2 | 1 | 1 | 1 |
111
+ | activity | name | course | idnumber | attempts | gradepass | completion | completionusegrade | completionpassgrade | completionattemptsexhausted |
112
+ | quiz | Test quiz name | C1 | quiz1 | 1 | 5 .00 | 2 | 1 | 1 | 1 |
113
113
And quiz "Test quiz name" contains the following questions:
114
114
| question | page |
115
115
| First question | 1 |
@@ -118,3 +118,23 @@ Feature: Course index completion icons
118
118
| 1 | True |
119
119
When I am on the "C1" "Course" page logged in as "student1"
120
120
And "Done" "icon" should exist in the "courseindex-content" "region"
121
+
122
+ @javascript
123
+ Scenario : Completion done should appear in the course index when the requirement is any grade
124
+ Given the following "question categories" exist:
125
+ | contextlevel | reference | name |
126
+ | Course | C1 | Test questions |
127
+ And the following "questions" exist:
128
+ | questioncategory | qtype | name | questiontext |
129
+ | Test questions | truefalse | First question | Answer the first question |
130
+ And the following "activities" exist:
131
+ | activity | name | course | idnumber | attempts | gradepass | completion | completionusegrade | completionpassgrade | completionattemptsexhausted |
132
+ | quiz | Test quiz name | C1 | quiz1 | 1 | 5 .00 | 2 | 1 | 0 | 1 |
133
+ And quiz "Test quiz name" contains the following questions:
134
+ | question | page |
135
+ | First question | 1 |
136
+ And user "student1" has attempted "Test quiz name" with responses:
137
+ | slot | response |
138
+ | 1 | False |
139
+ When I am on the "C1" "Course" page logged in as "student1"
140
+ And "Done" "icon" should exist in the "courseindex-content" "region"
0 commit comments