mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Revert "Don't rely on Behat/Selenium returning 'value' for textarea"
This reverts commit 8245125349
.
This commit is contained in:
parent
7e291133a0
commit
784c766ee6
@ -92,7 +92,7 @@ class CmsFormsContext extends BehatContext {
|
||||
$element = $page->findField($locator);
|
||||
assertNotNull($element, sprintf('HTML field "%s" not found', $locator));
|
||||
|
||||
$actual = $element->getHTML();
|
||||
$actual = $element->getAttribute('value');
|
||||
$regex = '/'.preg_quote($html, '/').'/ui';
|
||||
if (!preg_match($regex, $actual)) {
|
||||
$message = sprintf(
|
||||
|
Loading…
Reference in New Issue
Block a user