-
Bug
-
Resolution: Fixed
-
Minor
-
4.4.7, 4.5.3, 5.0
-
3
-
HQ 2025 Sprint I1.3 Moppies
Currently, if behat is initialized with scss deprecations check php admin/tool/behat/cli/init.php --scss-deprecations the failures don't give enough information to detect the deprecated style to fix it (Only displaying Deprecated style in use).
001 Scenario: Teacher can enable anonymous submissions # /moodle/mod/assign/tests/behat/assign_anonymous_submission.feature:24
|
And I navigate to "Submissions" in current page administration # /moodle/mod/assign/tests/behat/assign_anonymous_submission.feature:34
|
Deprecated style in use (Exception)
|
|
1 scenario (1 failed)
|
21 steps (9 passed, 1 failed, 11 skipped)
|
0m21.10s (88.37Mb)
|
We should show the deprecated class that is raising the error, and also the complete class list of the element will be helpful to find the code to fix.
Something like:
001 Scenario: Teacher can enable anonymous submissions # /moodle/mod/assign/tests/behat/assign_anonymous_submission.feature:24
|
And I navigate to "Submissions" in current page administration # /moodle/mod/assign/tests/behat/assign_anonymous_submission.feature:34
|
Deprecated styles found:
|
.text-left (found in: btn dropdown-toggle d-flex text-left align-items-center p-0)
|
.pr (found in: pr-3 text-truncate)
|
(Behat\Mink\Exception\ExpectationException)
|