FIX Persist TinyMCE updates when writing with Behat

This commit is contained in:
Guy Marriott 2018-10-11 14:34:18 +13:00
parent eb0ef1c268
commit 0db2f84ade
No known key found for this signature in database
GPG Key ID: A80F9ACCB86D3DA7
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ class CmsFormsContext implements Context
$inputField->getAttribute('id'),
addcslashes($value, "'")
));
$this->getSession()->evaluateScript(sprintf(
"jQuery('#%s').entwine('ss').getEditor().save()",
$inputField->getAttribute('id')
));
}
/**