diff --git a/acceptance/WcmsTestsImgInlineCest.php b/acceptance/WcmsTestsImgInlineCest.php index 9e0b3cc53baf3be3ff2a16a12dbe10e40db64c8f..588c2877d5e67ff05d728884486078d59fad0cbd 100644 --- a/acceptance/WcmsTestsImgInlineCest.php +++ b/acceptance/WcmsTestsImgInlineCest.php @@ -72,10 +72,14 @@ class WcmsTestsImgInlineCest { 'textarea[name="settings[block_form][field_uw_copy_text][0][value]"]' ); + // Trigger CKEditor update. + $i->executeJS('for (instance in CKEDITOR.instances) { CKEDITOR.instances[instance].updateElement(); }'); + // Click the submit button. $i->waitForElementClickable('input[id*="edit-actions-submit"]'); $i->click('input[id*="edit-actions-submit"]'); $i->switchToIFrame(); + // Ensure that the block is on the page. $i->waitForJS("return document.readyState === 'complete';", 30); $i->waitForElement(".uw-copy-text div " . $block . " img", 30);