diff --git a/lib/tests/behat/behat_forms.php b/lib/tests/behat/behat_forms.php index d681d2ccfbf..44f995bac0f 100644 --- a/lib/tests/behat/behat_forms.php +++ b/lib/tests/behat/behat_forms.php @@ -221,7 +221,7 @@ class behat_forms extends behat_base { /** * Sets the specified value to the field. * - * @Given /^I set the field "(?P(?:[^"]|\\")*)" to multiline$/ + * @Given /^I set the field "(?P(?:[^"]|\\")*)" to multiline:?$/ * @throws ElementNotFoundException Thrown by behat_base::find * @param string $field * @param PyStringNode $value diff --git a/mod/data/tests/behat/required_entries.feature b/mod/data/tests/behat/required_entries.feature index 0909f42b653..39d34232fec 100644 --- a/mod/data/tests/behat/required_entries.feature +++ b/mod/data/tests/behat/required_entries.feature @@ -36,7 +36,7 @@ Feature: Users can be required to specify certain fields when adding entries to | Field name | Required Two-Option Checkbox | | Field description | Required Two-Option Checkbox | | Required | yes | - And I set the field "Options" to multiline + And I set the field "Options" to multiline: """ RTOC Option 1 RTOC Option 2 @@ -83,7 +83,7 @@ Feature: Users can be required to specify certain fields when adding entries to | Field name | Required Two-Option Multimenu | | Field description | Required Two-Option Multimenu | | Required | yes | - And I set the field "Options" to multiline + And I set the field "Options" to multiline: """ Option 1 Option 2