Revert "Don't rely on Behat/Selenium returning 'value' for textarea"

This reverts commit 8245125349.
This commit is contained in:
Ingo Schommer 2013-11-22 20:38:56 +01:00
parent 7e291133a0
commit 784c766ee6

View File

@ -92,7 +92,7 @@ class CmsFormsContext extends BehatContext {
$element = $page->findField($locator); $element = $page->findField($locator);
assertNotNull($element, sprintf('HTML field "%s" not found', $locator)); assertNotNull($element, sprintf('HTML field "%s" not found', $locator));
$actual = $element->getHTML(); $actual = $element->getAttribute('value');
$regex = '/'.preg_quote($html, '/').'/ui'; $regex = '/'.preg_quote($html, '/').'/ui';
if (!preg_match($regex, $actual)) { if (!preg_match($regex, $actual)) {
$message = sprintf( $message = sprintf(