Fixed webtest for member and contact
authorpratikshad <pratiksha.dubey@webaccess.co.in>
Wed, 18 Feb 2015 09:17:20 +0000 (19:17 +1000)
committerpratikshad <pratiksha.dubey@webaccess.co.in>
Wed, 18 Feb 2015 09:17:20 +0000 (19:17 +1000)
tests/phpunit/WebTest/Contact/AddTest.php
tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipTest.php

index b553f665b3d8d4c7c59b602dc4c1d5f971bb45ba..f35f9c19c63798813cafcae3d110dd7f9eba20f3 100644 (file)
@@ -443,8 +443,6 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
 
     $this->click("_qf_Edit_next");
 
-    // Is new contact created?
-    $this->waitForText("css=div.crm-status-box-msg", "$currentEmployer Created");
     $this->select2('employer_id', $currentEmployer);
 
     //make sure shared address is selected
@@ -476,9 +474,6 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
 
     $this->click("_qf_Edit_next");
 
-    // Is new contact created?
-    $this->waitForText("css=div.crm-status-box-msg", "$sharedHousehold Created");
-
     //make sure shared address is selected
     $this->waitForElementPresent('selected_shared_address-2');
 
index 27e263d24b44b3f7434e9855e34b74ef384cdcef..0f5af80ae3986186f8c7d5db428809ea82d0e671 100644 (file)
@@ -60,7 +60,7 @@ class WebTest_Member_OnlineAutoRenewMembershipTest extends CiviSeleniumTestCase
     $this->click("_qf_Confirm_next-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
-    $text = 'This membership will be renewed automatically every 1 year(s).';
+    $text = 'This membership will be renewed automatically every year.';
     $this->assertElementContainsText("xpath=//div[@class='crm-group amount_display-group']/div[2]/strong[3]", $text, 'Missing text: ' . $text);
   }
 
@@ -93,7 +93,7 @@ class WebTest_Member_OnlineAutoRenewMembershipTest extends CiviSeleniumTestCase
     $this->click("_qf_Confirm_next-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
-    $text = 'This membership will be renewed automatically every 1 year(s).';
+    $text = 'This membership will be renewed automatically every year.';
     $this->assertElementContainsText("xpath=//div[@class='crm-group amount_display-group']/div[2]/strong[3]", $text, 'Missing text: ' . $text);
   }
 
@@ -121,7 +121,7 @@ class WebTest_Member_OnlineAutoRenewMembershipTest extends CiviSeleniumTestCase
     $this->click("_qf_Confirm_next-bottom");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
-    $text = 'This membership will be renewed automatically every 1 year(s).';
+    $text = 'This membership will be renewed automatically every year.';
     $this->assertElementContainsText("xpath=//div[@class='crm-group amount_display-group']/div[2]/strong[3]", $text, 'Missing text: ' . $text);
   }