mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-75669 qbank: Using boostrap attributes instead of title
Bootstrap5 documents that, for tooltips and when title is used, Popper will replace it automatically with data-bs-title when the element is rendered. So using title makes no sense because Popper will replace it. We are using data-bs-original-title instead.
This commit is contained in:
parent
709273df45
commit
3f1fca28fc
@ -30,8 +30,8 @@
|
||||
}}
|
||||
<span
|
||||
class="qbank_managecategories-newchild"
|
||||
title="{{newchildtooltip}}"
|
||||
data-parent="{{categoryid}}"
|
||||
data-bs-original-title="{{newchildtooltip}}"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-trigger="manual"
|
||||
data-bs-placement="top"
|
||||
|
@ -69,7 +69,7 @@ Feature: A teacher can put questions in categories in the question bank
|
||||
Scenario: An empty question category can be deleted
|
||||
When I am on the "Qbank 1" "core_question > question categories" page
|
||||
And I should see "Subcategory & < > \" ' &"
|
||||
And the "title" attribute of "span.qbank_managecategories-newchild.dropready" "css_element" should contain "As new child of Subcategory & < > \" ' &"
|
||||
And the "data-bs-original-title" attribute of "span.qbank_managecategories-newchild.dropready" "css_element" should contain "As new child of Subcategory & < > \" ' &"
|
||||
And I open the action menu in "Subcategory" "list_item"
|
||||
And I choose "Delete" in the open action menu
|
||||
And I click on "Delete" "button" in the "Delete" "dialogue"
|
||||
|
Loading…
x
Reference in New Issue
Block a user