@@ -124,8 +124,9 @@ Feature: Attempt a quiz in app
124
124
125
125
When I press "Submit all and finish" in the app
126
126
And I press "Submit" near "Once you submit" in the app
127
- Then I should find "Review" in the app
128
- And I should find "Started on" in the app
127
+ And I run all adhoc tasks
128
+ And I pull to refresh until I find "Review" in the app
129
+ Then I should find "Started on" in the app
129
130
And I should find "State" in the app
130
131
And I should find "Completed on" in the app
131
132
And I should find "Time taken" in the app
@@ -182,8 +183,9 @@ Feature: Attempt a quiz in app
182
183
Then I should find "Questions without a response: 1" in the app
183
184
184
185
When I press "Submit" in the app
185
- Then I should find "Review" in the app
186
- And I should find "Finished" in the app
186
+ And I run all adhoc tasks
187
+ And I pull to refresh until I find "Review" in the app
188
+ Then I should find "Finished" in the app
187
189
And I should find "Not yet graded" in the app
188
190
189
191
When I press "Correct" within "Question 2" "ion-card" in the app
@@ -206,6 +208,8 @@ Feature: Attempt a quiz in app
206
208
207
209
When I press "Submit" in the app
208
210
Then I should find "Review" in the app
211
+ And I should find "Finished" within "State" "ion-item" in the app
212
+ And I should find "Not yet graded" within "Grade" "ion-item" in the app
209
213
210
214
When I replace "/.*/" within "page-addon-mod-quiz-review core-loading > ion-card ion-item:nth-child(1) p:nth-child(2)" with "[Started on date]"
211
215
And I replace "/.*/" within "page-addon-mod-quiz-review core-loading > ion-card ion-item:nth-child(3) p:nth-child(2)" with "[Completed on date]"
@@ -218,5 +222,17 @@ Feature: Attempt a quiz in app
218
222
And I log in as "teacher1"
219
223
And I follow "Attempts: 1"
220
224
And I follow "Review attempt"
225
+ Then I should see "Submitted"
226
+ But I should not see "1.00/2.00"
227
+ When I run all adhoc tasks
228
+ And I reload the page
221
229
Then I should see "Finished"
222
230
And I should see "1.00/2.00"
231
+ When I switch back to the app
232
+ And I entered the quiz activity "Quiz 1" on course "Course 1" as "student1" in the app
233
+ And I pull to refresh until I find "Highest grade: 50 / 100" in the app
234
+ Then I should not find "Not yet graded" in the app
235
+ When I press "1" within "Finished" "ion-item" in the app
236
+ Then I should find "Finished" within "State" "ion-item" in the app
237
+ And I should find "1" within "Marks / 2" "ion-item" in the app
238
+ And I should find "50" within "Grade / 100" "ion-item" in the app
0 commit comments