Merge branch 'MDL-87810-501' of https://github.com/junpataleta/moodle into MOODLE_501_STABLE

This commit is contained in:
Mihail Geshoski
2026-03-19 09:49:50 +08:00
4 changed files with 17 additions and 15 deletions
@@ -22,10 +22,10 @@ Feature: Enable deferred or immediate feedback for quiz
| contextlevel | reference | name |
| Activity module | qbank1 | Test questions |
And the following "questions" exist:
| questioncategory | qtype | name | questiontext |
| Test questions | truefalse | TF1 | First question |
| questioncategory | qtype | name | questiontext | generalfeedback |
| Test questions | truefalse | TF1 | <a href="https://moodle.org">Moodle</a> is the best LMS | You should know that <a href="https://moodle.org">Moodle</a> is the best LMS |
@javascript
@javascript @accessibility
Scenario: Attempt quiz with How questions behave set to Deferred Feedback
Given the following "activity" exists:
| activity | quiz |
@@ -48,16 +48,18 @@ Feature: Enable deferred or immediate feedback for quiz
# Confirm that check button does not exist when attempting quiz
Then "Check Question 1" "button" should not exist
And I set the field "False" to "1"
And the "region-main" "region" should meet accessibility standards
And I press "Finish attempt ..."
And I should not see "This is the wrong answer."
And I should not see "You should have selected true."
And I should not see "You should know that Moodle is the best LMS"
And I should not see "The correct answer is 'True'."
And I press "Submit all and finish"
# Confirm that quiz answer feedback only appears when attempt is submitted
And I click on "Submit all and finish" "button" in the "Submit all your answers and finish?" "dialogue"
And I should see "This is the wrong answer."
And I should see "You should have selected true."
And I should see "You should know that Moodle is the best LMS"
And I should see "The correct answer is 'True'."
And the "region-main" "region" should meet accessibility standards
Scenario: Attempt quiz with How questions behave set to Immediate Feedback
Given the following "activity" exists:
@@ -101,7 +103,7 @@ Feature: Enable deferred or immediate feedback for quiz
| 1 | True |
When I am on the "Quiz 1" "quiz activity" page logged in as student1
And I click on "Review" "link"
Then I should see "You should have selected true."
Then I should see "You should know that Moodle is the best LMS"
And I <visibility> see "This is the right answer."
And I <visibility> see "The correct answer is 'True'."
And the following <visibility> exist in the "quizreviewsummary" table:
+3 -3
View File
@@ -346,9 +346,9 @@ body.path-question-type {
}
.que .outcome,
.que .comment {
color: shift-color($warning, $alert-color-scale - 9%);
color: shift-color($warning, $alert-color-scale);
border-color: shift-color($warning, $alert-border-scale);
@include gradient-bg(shift-color($warning, $alert-bg-scale));
@include gradient-bg(shift-color($warning, $alert-bg-scale - 5%));
// Darken link colour inside comments for better colour contrast against regular text.
a {
color: darken($link-color, 30%);
@@ -358,7 +358,7 @@ body.path-question-type {
.que .formulation {
color: shift-color($info, $alert-color-scale + 40%);
border-color: shift-color($info, $alert-border-scale);
@include gradient-bg(shift-color($info, $alert-bg-scale));
@include gradient-bg(shift-color($info, $alert-bg-scale - 10%));
}
.que.multichoice .answer div.r0 .icon.fa-check,
+3 -3
View File
@@ -34178,9 +34178,9 @@ body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([
.que .outcome,
.que .comment {
color: #a67736;
color: #90682f;
border-color: #fbe6ca;
background-color: #fcefdc;
background-color: #fdf3e4;
}
.que .outcome a,
.que .comment a {
@@ -34190,7 +34190,7 @@ body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([
.que .formulation {
color: #001a1e;
border-color: #b3d9e0;
background-color: #cce6ea;
background-color: #e6f2f5;
}
.que.multichoice .answer div.r0 .icon.fa-check,
+3 -3
View File
@@ -34178,9 +34178,9 @@ body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([
.que .outcome,
.que .comment {
color: #a67736;
color: #90682f;
border-color: #fbe6ca;
background-color: #fcefdc;
background-color: #fdf3e4;
}
.que .outcome a,
.que .comment a {
@@ -34190,7 +34190,7 @@ body.path-question-type .fitem .col-form-label.visually-hidden:not(legend):not([
.que .formulation {
color: #001a1e;
border-color: #b3d9e0;
background-color: #cce6ea;
background-color: #e6f2f5;
}
.que.multichoice .answer div.r0 .icon.fa-check,