From 85f20080a022a70f80efe4ec83a4e989e4884901 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 26 Jul 2016 11:16:44 +0800 Subject: [PATCH] MDL-55329 behat: PyStrings should end with : (colon) --- lib/tests/behat/behat_forms.php | 2 +- mod/data/tests/behat/required_entries.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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