Skip to content
Snippets Groups Projects
Commit 9763550f authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-7189 Trigger CKEditor update in ContentType to make...

ISTWCMS-7189 Trigger CKEditor update in ContentType to make WcmsTestsContentTypeOpportunityCest work
parent fbd62908
No related branches found
No related tags found
1 merge request!83ISTWCMS-7160 Fix service content type in testAutomaticListBlocksSettings in...
......@@ -255,16 +255,19 @@ class ContentType extends \AcceptanceTester {
// Switch the block form iframe.
$i->switchToIFrame('iframe[class="lbim-dialog-iframe"]');
$title = $i->uwRandomString();
// FIll in fields.
$i->fillField('input[name="settings[label]"]', $i->uwRandomString());
$i->fillField('input[name="settings[label]"]', $title);
$i->fillCkEditor($i->uwRandomString(), 'textarea[name="settings[block_form][field_uw_copy_text][0][value]"]');
// Click add block and ensure it appears on page.
$i->waitForText('Add block');
$i->click('Add block');
$i->click('Add block');
// Trigger CKEditor update.
$i->executeJS('for (instance in CKEDITOR.instances) { CKEDITOR.instances[instance].updateElement(); }');
// Submit form.
$i->click('input[id*="edit-actions-submit"]');
$i->switchToIFrame();
$i->waitForElement('div[class="uw-copy-text"]');
$i->waitForText($title);
$i->seeElement('div[class="uw-copy-text"]');
// Save the layout and ensure that new block appears
......@@ -431,6 +434,7 @@ class ContentType extends \AcceptanceTester {
$i->amOnPage($view_url . '/revisions');
// Ensure that they can not view revisions.
$i->see('Access denied');
$i->see('You are not authorized to access this page.');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment