mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-80205-main' of https://github.com/aanabit/moodle
This commit is contained in:
commit
c3254b89ff
@ -273,7 +273,8 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
// A SCORM module should define this within itself and is not needed here.
|
||||
$suffix = $this->get_suffix();
|
||||
$completionpassgradeel = 'completionpassgrade' . $suffix;
|
||||
if ($mform->elementExists($completionpassgradeel)) {
|
||||
// The 'completionpassgrade' is a radio element with multiple options, so we should remove all of them.
|
||||
while ($mform->elementExists($completionpassgradeel)) {
|
||||
$mform->removeElement($completionpassgradeel);
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,15 @@ Feature: View activity completion in the SCORM activity
|
||||
And "Music history" should have the "Receive a grade" completion condition
|
||||
And "Music history" should have the "Complete or pass the activity" completion condition
|
||||
|
||||
@javascript
|
||||
Scenario: Any grade and Passing grade options are hidden
|
||||
Given I am on the "Music history" "scorm activity" page logged in as teacher1
|
||||
When I navigate to "Settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
And the field "completionusegrade" matches value "1"
|
||||
Then I should not see "Any grade"
|
||||
And I should not see "Passing grade"
|
||||
|
||||
@javascript
|
||||
Scenario: View automatic completion items as a student
|
||||
Given I am on the "Music history" "scorm activity" page logged in as student1
|
||||
|
Loading…
x
Reference in New Issue
Block a user