Webtest Fix
authorSudha Bisht <sudha.bisht@webaccessglobal.com>
Mon, 20 Jul 2015 14:02:20 +0000 (19:32 +0530)
committerSudha Bisht <sudha.bisht@webaccessglobal.com>
Mon, 20 Jul 2015 14:02:20 +0000 (19:32 +0530)
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/WebTest/Contact/SearchBuilderTest.php
tests/phpunit/WebTest/Contribute/ContributionPageAddTest.php

index cc518caba29a5cd37e50f9bb7c2097a1abe9c96d..5629e0609be167f8c50161c9503705c60278ea9c 100644 (file)
@@ -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");
index 35616e9843c65e0d0030477f755bf2400c37c6fd..b9c20143a9c6432649935e281c3beb38f3491d56 100644 (file)
@@ -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);
index 1024bfb2d2e4f08cea0696deed3f762123985aae..fecd7b037738c36404e95b474027eb6b9ecdd231 100644 (file)
@@ -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");