@@ -124,8 +124,9 @@ Feature: Attempt a quiz in app
124124
125125 When I press "Submit all and finish" in the app
126126 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
129130 And I should find "State" in the app
130131 And I should find "Completed on" in the app
131132 And I should find "Time taken" in the app
@@ -182,8 +183,9 @@ Feature: Attempt a quiz in app
182183 Then I should find "Questions without a response: 1" in the app
183184
184185 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
187189 And I should find "Not yet graded" in the app
188190
189191 When I press "Correct" within "Question 2" "ion-card" in the app
@@ -206,6 +208,8 @@ Feature: Attempt a quiz in app
206208
207209 When I press "Submit" in the app
208210 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
209213
210214 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]"
211215 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
218222 And I log in as "teacher1"
219223 And I follow "Attempts: 1"
220224 And I follow "Review attempt"
225+ And I should see "Submitted"
226+ And I should not see "1.00/2.00"
227+ And I run all adhoc tasks
228+ And I reload the page
221229 Then I should see "Finished"
222230 And I should see "1.00/2.00"
231+ And 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+ And I should not find "Not yet graded" in the app
235+ And I press "1" in the app
236+ And 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