-
Improvement
-
Resolution: Fixed
-
Minor
-
3.9.18, 3.11.11, 4.0.5, 4.1
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-76399-401 -
Specifically this change to the message of the thrown exception, done as part of MDL-76169 leads to the following if the step fails:
001 Scenario: Verify breadcrumbs in manage roles tab # /var/www/html/admin/roles/tests/behat/siteadmin_roles_breadcrumbs.feature:10
|
When "Define roles" "button" should exist in the ".breadcrumb" "css_element" # /var/www/html/admin/roles/tests/behat/siteadmin_roles_breadcrumbs.feature:12
|
Button matching locator "Define roles not found in the '.breadcrumb' css_element}" not found. (Behat\Mink\Exception\ElementNotFoundException)
|
It initially caught my eye because of the stray closing curly bracket in the output, but there are also issues with trying to read that string. Odd quotation mark placement, and duplication of the "not found" content make it quite difficult to parse:
Button matching locator "Define roles not found in the '.breadcrumb' css_element}" not found.
|
Note I know the language is difficult to get perfect due to the structure of the placeholders in the base ElementNotFoundException class, but I think we can improve it a bit