diff --git a/MDL-87443-2025121117305654.yml b/MDL-87443-2025121117305654.yml new file mode 100644 index 00000000000..0456305686b --- /dev/null +++ b/MDL-87443-2025121117305654.yml @@ -0,0 +1,7 @@ +issueNumber: MDL-87443 +notes: + core: + - message: >- + There is a new Behat `toast_message` named selector to more easily + assert the presence of Toast messages on the page + type: improved diff --git a/lib/behat/classes/partial_named_selector.php b/lib/behat/classes/partial_named_selector.php index 6363d443bcd..44e4882c2ca 100644 --- a/lib/behat/classes/partial_named_selector.php +++ b/lib/behat/classes/partial_named_selector.php @@ -127,6 +127,7 @@ class behat_partial_named_selector extends \Behat\Mink\Selector\PartialNamedSele 'table' => 'table', 'table_row' => 'table_row', 'text' => 'text', + 'toast_message' => 'toast_message', 'xpath_element' => 'xpath_element', 'form_row' => 'form_row', 'autocomplete_selection' => 'autocomplete_selection', @@ -279,6 +280,9 @@ XPATH XPATH , 'text' => << << <<