From e01be963a667bd5118cbc633a1849919dee8ef6e Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Fri, 20 Dec 2024 10:40:19 -0500 Subject: [PATCH] ISTWCMS-7160: add wait for text on add block to ensure that it is clickable --- _support/Step/Acceptance/ContentType.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_support/Step/Acceptance/ContentType.php b/_support/Step/Acceptance/ContentType.php index 4e383108..c496db0f 100644 --- a/_support/Step/Acceptance/ContentType.php +++ b/_support/Step/Acceptance/ContentType.php @@ -244,6 +244,7 @@ class ContentType extends \AcceptanceTester { $i->waitForText('Edit layout for'); // Click on the add block. + $i->waitForText('Add block'); $i->click('Add block'); $i->waitForText('Choose a block'); @@ -256,6 +257,7 @@ class ContentType extends \AcceptanceTester { $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->waitForElement(Locator::contains('div[class="uw-admin-label"]', 'Copy text')); $i->seeElement(Locator::contains('div[class="uw-admin-label"]', 'Copy text')); -- GitLab