Merge branch 'MDL-87412_500_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_500_STABLE
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
/* stylelint-disable max-line-length */
|
||||
.qbank_managecategories-newchild.qbank_managecategories-droptarget,
|
||||
/* Show the drop target if it's directly inside a highlighted category, but not if its inside a child of that category */
|
||||
.qbank_managecategories-droptarget-before > .container > .row > .qbank_managecategories-contentcontainer > :not(.qbank_managecategories-childlistcontainer) .qbank_managecategories-newchild {
|
||||
.qbank_managecategories-droptarget-before > .container > div > .qbank_managecategories-contentcontainer > :not(.qbank_managecategories-childlistcontainer) .qbank_managecategories-newchild {
|
||||
display: unset;
|
||||
}
|
||||
/* stylelint-enable max-line-length */
|
||||
|
||||
@@ -93,3 +93,14 @@ Feature: A teacher can reorder question categories
|
||||
And I should not see "Course category 1" in the "Parent category" "field"
|
||||
And I should see "Course category 2" in the "Parent category" "field"
|
||||
And I should not see "Course category 3" in the "Parent category" "field"
|
||||
|
||||
Scenario: Dragging a category over a category with no children shows an "as new child" drop target.
|
||||
Given the following "question categories" exist:
|
||||
| contextlevel | reference | name | idnumber | questioncategory |
|
||||
| Activity module | qbank1 | Course category 4 | questioncat4 | Course category 2 |
|
||||
And I reload the page
|
||||
And I change viewport size to "large"
|
||||
And I drag "Course category 3" "list_item" and I drop it in "Course category 2" "text"
|
||||
And I should not see "+" in the "Course category 2" "list_item"
|
||||
When I drag "Course category 3" "list_item" and I drop it in "Course category 1" "text"
|
||||
Then I should see "+" in the "Course category 1" "list_item"
|
||||
|
||||
Reference in New Issue
Block a user