From: Web Access Date: Thu, 2 Apr 2015 11:11:02 +0000 (+0530) Subject: Webtest fix for mailing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2198c6e50e3e52da6a89a47a6cd750ad100202de;p=civicrm-core.git Webtest fix for mailing --- diff --git a/tests/phpunit/WebTest/Mailing/AddMessageTemplateTest.php b/tests/phpunit/WebTest/Mailing/AddMessageTemplateTest.php index 54db449453..0ac9ba1b32 100644 --- a/tests/phpunit/WebTest/Mailing/AddMessageTemplateTest.php +++ b/tests/phpunit/WebTest/Mailing/AddMessageTemplateTest.php @@ -123,7 +123,13 @@ class WebTest_Mailing_AddMessageTemplateTest extends CiviSeleniumTestCase { // Because it tends to cause problems, all uses of sleep() must be justified in comments // Sleep should never be used for wait for anything to load from the server // Justification for this instance: FIXME - sleep(5); + $this->waitForAjaxContent(); + $this->select2('s2id_autogen1', "Unsubscribe via web page"); + $this->select2('s2id_autogen1', "Domain (organization) address"); + $this->waitForAjaxContent(); + $this->select2('s2id_autogen3', "Unsubscribe via web page"); + $this->select2('s2id_autogen3', "Domain (organization) address"); + $this->waitForAjaxContent(); $this->click("xpath=//div[@class='preview-popup']//a[text()='Preview as Plain Text']"); $this->click('subject');