MDL-37958 behat: Ignoring spaces when comparing field contents

This commit is contained in:
David Monllao
2013-03-05 11:08:04 +08:00
parent e6ac2ab7c2
commit 15c7fb4adb
+1 -1
View File
@@ -154,7 +154,7 @@ class behat_forms extends behat_base {
$fieldvalue = $field->get_value();
// Checks if the provided value matches the current field value.
if ($value != $fieldvalue) {
if (trim($value) != trim($fieldvalue)) {
throw new ExpectationException(
'The \'' . $locator . '\' value is \'' . $fieldvalue . '\', \'' . $value . '\' expected' ,
$this->getSession()