MOBILE-4350 quiz: Disable unanswered warning in sequential navigation

main
Noel De Martin 2024-02-22 13:24:21 +01:00
parent 088d7ccc55
commit 02918af512
2 changed files with 5 additions and 2 deletions

View File

@ -412,7 +412,7 @@ export class AddonModQuizPlayerPage implements OnInit, OnDestroy, CanLeave {
.filter(question => AddonModQuiz.isQuestionUnanswered(question))
.length;
if (unansweredCount > 0) {
if (!this.isSequential && unansweredCount > 0) {
const warning = Translate.instant(
'addon.mod_quiz.submission_confirmation_unanswered',
{ $a: unansweredCount },

View File

@ -133,7 +133,10 @@ Feature: Navigate through a quiz in the app
And I should find "Not yet answered" within "3" "ion-item" in the app
When I press "Submit all and finish" in the app
And I press "Submit" near "Once you submit" in the app
Then I should find "Once you submit" in the app
But I should not find "Questions without a response" in the app
When I press "Submit" near "Once you submit" in the app
Then I should find "Review" in the app
And I should find "Text of the first question" in the app
And I should find "Text of the second question" in the app