Skip to content

Commit 02918af

Browse files
committed
MOBILE-4350 quiz: Disable unanswered warning in sequential navigation
1 parent 088d7cc commit 02918af

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/addons/mod/quiz/pages/player/player.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export class AddonModQuizPlayerPage implements OnInit, OnDestroy, CanLeave {
412412
.filter(question => AddonModQuiz.isQuestionUnanswered(question))
413413
.length;
414414

415-
if (unansweredCount > 0) {
415+
if (!this.isSequential && unansweredCount > 0) {
416416
const warning = Translate.instant(
417417
'addon.mod_quiz.submission_confirmation_unanswered',
418418
{ $a: unansweredCount },

src/addons/mod/quiz/tests/behat/quiz_navigation.feature

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ Feature: Navigate through a quiz in the app
133133
And I should find "Not yet answered" within "3" "ion-item" in the app
134134

135135
When I press "Submit all and finish" in the app
136-
And I press "Submit" near "Once you submit" in the app
136+
Then I should find "Once you submit" in the app
137+
But I should not find "Questions without a response" in the app
138+
139+
When I press "Submit" near "Once you submit" in the app
137140
Then I should find "Review" in the app
138141
And I should find "Text of the first question" in the app
139142
And I should find "Text of the second question" in the app

0 commit comments

Comments
 (0)