From: Sudha Bisht Date: Mon, 20 Jul 2015 14:02:20 +0000 (+0530) Subject: Webtest Fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=df90c6ddc74c1be1c7f6443f0f25862e66b33a12;p=civicrm-core.git Webtest Fix --- diff --git a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php index cc518caba2..5629e0609b 100644 --- a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php +++ b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php @@ -1365,13 +1365,13 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase { $this->click('_qf_AddProduct_next-bottom'); $this->waitForElementPresent('_qf_Premium_cancel-bottom'); $this->click('_qf_Premium_next-bottom'); + $this->waitForPageToLoad($this->getTimeoutMsec()); } if ($widget) { // fill in step 8 (Widget Settings) $this->click('link=Widgets'); $this->waitForElementPresent('_qf_Widget_next-bottom'); - $this->click('is_active'); $this->type('url_logo', "URL to Logo Image $hash"); $this->type('button_title', "Button Title $hash"); diff --git a/tests/phpunit/WebTest/Contact/SearchBuilderTest.php b/tests/phpunit/WebTest/Contact/SearchBuilderTest.php index 35616e9843..b9c20143a9 100644 --- a/tests/phpunit/WebTest/Contact/SearchBuilderTest.php +++ b/tests/phpunit/WebTest/Contact/SearchBuilderTest.php @@ -68,7 +68,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase { $sortName = "adv$firstName, $firstName"; $displayName = "$firstName adv$firstName"; - $this->_searchBuilder("ZIP / Postal Code", "100[0-9]", $sortName, "RLIKE"); + $this->_searchBuilder("Zip / Postal Code", "100[0-9]", $sortName, "RLIKE"); } /** @@ -198,7 +198,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase { $this->_createContact('Household', $firstName7, "$firstName7@advsearch.co.in", NULL, $postalCode); // check if the resultset of search builder and advanced search match for the postal code - $this->_searchBuilder('ZIP / Postal Code', $postalCode, NULL, 'LIKE', '4'); + $this->_searchBuilder('Zip / Postal Code', $postalCode, NULL, 'LIKE', '4'); $this->_advancedSearch($postalCode, NULL, NULL, '4', 'postal_code'); $firstName8 = "abcc" . substr(sha1(rand()), 0, 7); diff --git a/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php b/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php index 1024bfb2d2..fecd7b0377 100644 --- a/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php +++ b/tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php @@ -358,10 +358,8 @@ class WebTest_Contribute_ContributionPageAddTest extends CiviSeleniumTestCase { // fill in Receipt details $this->type('thankyou_title', "Thank-you Page Title $hash"); - $this->click("thankyou_text-plain"); - $this->fillRichTextField('thankyou_text', 'This is thankyou message for ' . $pageTitle, 'CKEditor'); - $this->click("thankyou_footer-plain"); - $this->fillRichTextField('thankyou_footer', 'This is thankyou footer message for ' . $pageTitle, 'CKEditor'); + $this->fillRichTextField('thankyou_text', 'This is thankyou message for ' . $pageTitle, 'CKEditor', TRUE); + $this->fillRichTextField('thankyou_footer', 'This is thankyou footer message for ' . $pageTitle, 'CKEditor', TRUE); $this->click('is_email_receipt'); $this->waitForElementPresent('bcc_receipt'); $this->type('receipt_from_name', "Receipt From Name $hash");