From 3a5ca14b24e87bc76b67bfd01506ed1edbf45a87 Mon Sep 17 00:00:00 2001 From: Laurent David Date: Tue, 25 Feb 2025 07:30:01 +0100 Subject: [PATCH] MDL-84304 mod_scorm: Remove completion failed from behat test * Now that we removed the COMPLETION_COMPLETE_FAIL status for scorm behat tests needs to be updated --- mod/scorm/tests/behat/scorm_activity_completion.feature | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/scorm/tests/behat/scorm_activity_completion.feature b/mod/scorm/tests/behat/scorm_activity_completion.feature index c460f0a478e..9ee16648d0f 100644 --- a/mod/scorm/tests/behat/scorm_activity_completion.feature +++ b/mod/scorm/tests/behat/scorm_activity_completion.feature @@ -110,8 +110,9 @@ Feature: View activity completion in the SCORM activity And I switch to the main frame When I am on the "Music history" "scorm activity" page Then the "View" completion condition of "Music history" is displayed as "done" - # Conditions that are not possible to achieve (eg score below requirement but all attempts used) are marked as failed. - And the "Receive a score of 3 or more" completion condition of "Music history" is displayed as "failed" + # Conditions that are not possible to achieve (eg score below requirement but all attempts used) are still marked as todo. + # this is because the SCORM does not return a score and also that the completion is not possible anymore (as all attempts are used). + And the "Receive a score of 3 or more" completion condition of "Music history" is displayed as "todo" And the "Do all parts of this activity" completion condition of "Music history" is displayed as "done" And the "Receive a grade" completion condition of "Music history" is displayed as "done" And the "Complete or pass the activity" completion condition of "Music history" is displayed as "done"