MDL-85200 mod_quiz: Expand behat test to cover shared bank display

This extends the existing behat test for adding a question from a shared
bank to confirm that the source bank is displayed with the question on
the Questions page.

The bank name is already passed through format_string() before being
passed to the template, so additional encoding by the template is not
necessary, hence the template has been changed to use triple braces.
This commit is contained in:
Mark Johnson
2025-06-03 16:32:49 +01:00
parent c39b737063
commit 20d694efa5
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
{{#issharedbank}}
<div class="sharedbank">
<a href="{{bankurl}}">
<span class="badge bg-primary text-light ms-2 mt-1">{{bankname}}</span>
<span class="badge bg-primary text-light ms-2 mt-1">{{{bankname}}}</span>
</a>
</div>
{{/issharedbank}}
@@ -172,6 +172,7 @@ Feature: Adding questions to a quiz from the question bank
And I click on "Select" "checkbox" in the "question 03 name" "table_row"
And I click on "Add selected questions to the quiz" "button"
And I should see "question 03 name"
And "Qbank 1 & < > " "text" should appear after "question 03 name" "text"
@javascript
Scenario: Validate the sorting while adding questions from question bank