From 0db2f84ade9b1e8e2811cd7c32bf5f3510544c74 Mon Sep 17 00:00:00 2001 From: Guy Marriott Date: Thu, 11 Oct 2018 14:34:18 +1300 Subject: [PATCH] FIX Persist TinyMCE updates when writing with Behat --- tests/behat/src/CmsFormsContext.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/behat/src/CmsFormsContext.php b/tests/behat/src/CmsFormsContext.php index bc85fee7d..a074cfb55 100644 --- a/tests/behat/src/CmsFormsContext.php +++ b/tests/behat/src/CmsFormsContext.php @@ -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') + )); } /**