You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ Changes
6
6
7
7
### Unreleased
8
8
9
+
* 2025-10-26 - Upgrade: Fix Behat test which tests the activity icon branding feature after the activity chooser restructurings on 5.1.
9
10
* 2025-10-26 - Upgrade: Verify the built-in SCSS snippets on 5.1.
10
11
* 2025-10-26 - Upgrade: Remove the timelinetintenabled and upcomingeventstintenabled settings from Boost Union as the timeline block and the upcoming events blocks have colored icons from Moodle 5.1 on
11
12
* 2025-10-26 - Upgrade: Adopt changes to settings.php from MDL-80556
Copy file name to clipboardExpand all lines: tests/behat/theme_boost_union_flavourssettings_look.feature
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -479,9 +479,9 @@ Feature: Configuring the theme_boost_union plugin on the "Flavours" page, applyi
479
479
And I click on "Add content""button" in the "New section""section"
480
480
And I click on "Activity or resource""button" in the "New section""section"
481
481
# First, we test that the default filter is _not_ set anymore.
482
-
Then DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should not have a CSS filter close to hex color "<originalhex>"
482
+
Then DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should not have a CSS filter close to hex color "<originalhex>"
483
483
# And then we test if the applied filter is close enough to the hex color.
484
-
And DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should have a CSS filter close enough to hex color "<colorhex>"
484
+
And DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should have a CSS filter close enough to hex color "<colorhex>"
485
485
486
486
# Unfortunately, we can only test 5 out of 7 purpose types as Moodle does does not ship with any activity with the
487
487
# administration and interface types. But this should be an acceptable test coverage anyway.
@@ -517,9 +517,9 @@ Feature: Configuring the theme_boost_union plugin on the "Flavours" page, applyi
517
517
And I click on "Add content""button" in the "New section""section"
518
518
And I click on "Activity or resource""button" in the "New section""section"
519
519
# First, we test that the default filter is _not_ set anymore.
520
-
Then DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should not have a CSS filter close to hex color "<originalhex>"
520
+
Then DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should not have a CSS filter close to hex color "<originalhex>"
521
521
# And then we test if the applied filter is close enough to the hex color.
522
-
And DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should have a CSS filter close enough to hex color "<colorhex>"
522
+
And DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should have a CSS filter close enough to hex color "<colorhex>"
523
523
524
524
# We only test 1 out of 6 purpose types as we have tested the rest already in the previous scenario.
525
525
Examples:
@@ -548,9 +548,9 @@ Feature: Configuring the theme_boost_union plugin on the "Flavours" page, applyi
548
548
And I click on "Add content""button" in the "New section""section"
549
549
And I click on "Activity or resource""button" in the "New section""section"
550
550
# First, we test that the default filter is _not_ set anymore.
551
-
Then DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should not have a CSS filter close to hex color "<originalhex>"
551
+
Then DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should not have a CSS filter close to hex color "<originalhex>"
552
552
# And then we test if the applied filter is close enough to the hex color.
553
-
And DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should have a CSS filter close enough to hex color "<colorhex>"
553
+
And DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should have a CSS filter close enough to hex color "<colorhex>"
554
554
555
555
# We only test 1 out of 6 purpose types as we have tested the rest already in the previous scenario.
Copy file name to clipboardExpand all lines: tests/behat/theme_boost_union_looksettings_activitybranding.feature
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ Feature: Configuring the theme_boost_union plugin for the "Activity branding" ta
21
21
And I click on "Add content""button" in the "New section""section"
22
22
And I click on "Activity or resource""button" in the "New section""section"
23
23
# First, we test that the default filter is _not_ set anymore.
24
-
Then DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should not have a CSS filter close to hex color "<originalhex>"
24
+
Then DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should not have a CSS filter close to hex color "<originalhex>"
25
25
# And then we test if the applied filter is close enough to the hex color.
26
-
And DOM element ".chooser-container .activityiconcontainer.modicon_<modname> img" should have a CSS filter close enough to hex color "<colorhex>"
26
+
And DOM element "[data-region=chooser-container] [data-internal=<modname>] .activityiconcontainer img" should have a CSS filter close enough to hex color "<colorhex>"
27
27
28
28
# Unfortunately, we can only test 5 out of 7 purpose types as Moodle does does not ship with any activity with the
29
29
# administration and interface types. But this should be an acceptable test coverage anyway.
@@ -77,7 +77,7 @@ Feature: Configuring the theme_boost_union plugin for the "Activity branding" ta
77
77
Then DOM element ".activity.modtype_<mod> .activityiconcontainer.courseicon img" should have a CSS filter close enough to hex color "<colorhex>"
78
78
And I click on "Add content""button" in the "New section""section"
79
79
And I click on "Activity or resource""button" in the "New section""section"
80
-
Then DOM element ".chooser-container .activityiconcontainer.modicon_<mod> img" should have a CSS filter close enough to hex color "<colorhex>"
80
+
Then DOM element "[data-region=chooser-container] [data-internal=<mod>] .activityiconcontainer img" should have a CSS filter close enough to hex color "<colorhex>"
81
81
And I am on the "Test name""<mod> activity" page
82
82
Then DOM element "#page-header .modicon_<mod>.activityiconcontainer img" should have a CSS filter close enough to hex color "<colorhex>"
83
83
And I am on the "Course 1""course > activities" page
@@ -107,7 +107,7 @@ Feature: Configuring the theme_boost_union plugin for the "Activity branding" ta
107
107
Then DOM element ".activity.modtype_assign .activityiconcontainer.courseicon img" should have computed style "filter""none"
108
108
And I click on "Add content""button" in the "New section""section"
109
109
And I click on "Activity or resource""button" in the "New section""section"
110
-
Then DOM element ".chooser-container.activityiconcontainer.modicon_assign img" should have computed style "filter""none"
110
+
Then DOM element "[data-region=chooser-container] [data-internal=assign] .activityiconcontainer img" should have computed style "filter""none"
111
111
And I am on the "Test name""assign activity" page
112
112
Then DOM element "#page-header .modicon_assign.activityiconcontainer img" should have computed style "filter""none"
113
113
And I am on the "Course 1""course > activities" page
0 commit comments