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

ISTWCMS-7189 Add switchToIFrame to make testContentTypeEdits work in ContentType

parent e35644ce
No related branches found
No related tags found
1 merge request!83ISTWCMS-7160 Fix service content type in testAutomaticListBlocksSettings in...
...@@ -252,6 +252,9 @@ class ContentType extends \AcceptanceTester { ...@@ -252,6 +252,9 @@ class ContentType extends \AcceptanceTester {
$i->click('Copy text'); $i->click('Copy text');
$i->waitForText('Configure block'); $i->waitForText('Configure block');
// Switch the block form iframe.
$i->switchToIFrame('iframe[class="lbim-dialog-iframe"]');
// FIll in fields. // FIll in fields.
$i->fillField('input[name="settings[label]"]', $i->uwRandomString()); $i->fillField('input[name="settings[label]"]', $i->uwRandomString());
$i->fillCkEditor($i->uwRandomString(), 'textarea[name="settings[block_form][field_uw_copy_text][0][value]"]'); $i->fillCkEditor($i->uwRandomString(), 'textarea[name="settings[block_form][field_uw_copy_text][0][value]"]');
...@@ -259,8 +262,10 @@ class ContentType extends \AcceptanceTester { ...@@ -259,8 +262,10 @@ class ContentType extends \AcceptanceTester {
// Click add block and ensure it appears on page. // Click add block and ensure it appears on page.
$i->waitForText('Add block'); $i->waitForText('Add block');
$i->click('Add block'); $i->click('Add block');
$i->waitForElement(Locator::contains('div[class="uw-admin-label"]', 'Copy text')); $i->click('Add block');
$i->seeElement(Locator::contains('div[class="uw-admin-label"]', 'Copy text')); $i->switchToIFrame();
$i->waitForElement('div[class="uw-copy-text"]');
$i->seeElement('div[class="uw-copy-text"]');
// Save the layout and ensure that new block appears // Save the layout and ensure that new block appears
// on the page with correct section classes. // on the page with correct section classes.
......
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