From 62815961cf5f58daa43526d02d48bd17343bfead Mon Sep 17 00:00:00 2001 From: pratikshad Date: Wed, 18 Feb 2015 19:17:20 +1000 Subject: [PATCH] Fixed webtest for member and contact --- tests/phpunit/WebTest/Contact/AddTest.php | 5 ----- .../WebTest/Member/OnlineAutoRenewMembershipTest.php | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/WebTest/Contact/AddTest.php b/tests/phpunit/WebTest/Contact/AddTest.php index b553f665b3..f35f9c19c6 100644 --- a/tests/phpunit/WebTest/Contact/AddTest.php +++ b/tests/phpunit/WebTest/Contact/AddTest.php @@ -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'); diff --git a/tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipTest.php b/tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipTest.php index 27e263d24b..0f5af80ae3 100644 --- a/tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipTest.php +++ b/tests/phpunit/WebTest/Member/OnlineAutoRenewMembershipTest.php @@ -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); } -- 2.25.1