MDL-37958 behat: Ignoring spaces when comparing field contents
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user