From 5ebb301598a0fcdb31abed22216b67798387aaef Mon Sep 17 00:00:00 2001 From: Laurent David Date: Thu, 20 Mar 2025 12:12:08 +0100 Subject: [PATCH] MDL-84304 core_courseformat: Remove COMPLETION_COMPLETE_FAIL test * Because we removed this status in mod_scorm, we cannot test it anymore against any module as no module has custom_rules that leads to COMPLETION_COMPLETE_FAIL --- .../behat/courseindex_completion.feature | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/course/format/tests/behat/courseindex_completion.feature b/course/format/tests/behat/courseindex_completion.feature index 74e2e52d531..c3e8fc496ee 100644 --- a/course/format/tests/behat/courseindex_completion.feature +++ b/course/format/tests/behat/courseindex_completion.feature @@ -150,47 +150,3 @@ Feature: Course index completion icons | 1 | False | When I am on the "C1" "Course" page logged in as "student1" And "Done" "icon" should exist in the "courseindex-content" "region" - - @javascript - Scenario: Activities with custom completion rules could fail - Given the following "activity" exists: - | activity | scorm | - | course | C1 | - | name | Music history | - | packagefilepath | mod/scorm/tests/packages/RuntimeMinimumCalls_SCORM12-mini.zip | - | maxattempt | 1 | - | latattemptlock | 1 | - # Add requirements - | completion | 2 | - | completionscorerequired | 90 | - Given I am on the "Music history" "scorm activity" page logged in as student1 - # We need a little taller window because Firefox is, apparently, unable to auto-scroll within - # an iframe, so we need to ensure that the "Save changes" button is visible in the viewport. - And I change window size to "large" - And I press "Enter" - And I switch to the main frame - And I click on "Par?" "list_item" - And I switch to "scorm_object" iframe - And I wait until the page is ready - And I switch to the main frame - And I click on "Keeping Score" "list_item" - And I switch to "scorm_object" iframe - And I wait until the page is ready - And I switch to the main frame - And I click on "Other Scoring Systems" "list_item" - And I switch to "scorm_object" iframe - And I wait until the page is ready - And I switch to the main frame - And I click on "The Rules of Golf" "list_item" - And I switch to "scorm_object" iframe - And I wait until the page is ready - And I switch to the main frame - And I click on "Playing Golf Quiz" "list_item" - And I switch to "scorm_object" iframe - And I wait until the page is ready - And I click on "[id='question_com.scorm.golfsamples.interactions.playing_1_1']" "css_element" - And I press "Submit Answers" - And I wait until "Score: 20" "text" exists - And I switch to the main frame - And I click on "Exit activity" "link" - And "Failed" "icon" should exist in the "courseindex-content" "region"