From 8b5ddb041966c5b10d5819d39232a7342fc83563 Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Thu, 2 Apr 2015 15:22:32 +0530 Subject: [PATCH] WebtestFix --- .../Member/OfflineMembershipAddPricesetTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/WebTest/Member/OfflineMembershipAddPricesetTest.php b/tests/phpunit/WebTest/Member/OfflineMembershipAddPricesetTest.php index dd0b39514b..a044633674 100644 --- a/tests/phpunit/WebTest/Member/OfflineMembershipAddPricesetTest.php +++ b/tests/phpunit/WebTest/Member/OfflineMembershipAddPricesetTest.php @@ -322,8 +322,11 @@ class WebTest_Member_OfflineMembershipAddPricesetTest extends CiviSeleniumTestCa $this->click('css=li#tab_member a'); $this->waitForElementPresent('link=Add Membership'); + if ($this->isTextPresent("No memberships have been recorded for this contact.")) { + $this->waitForTextPresent('No memberships have been recorded for this contact.'); + } - $this->click('link=Add Membership'); + $this->clickAjaxLink('link=Add Membership'); $this->waitForElementPresent('_qf_Membership_cancel-bottom'); $this->select('price_set_id', "value={$sid}"); @@ -410,8 +413,11 @@ class WebTest_Member_OfflineMembershipAddPricesetTest extends CiviSeleniumTestCa $this->click('css=li#tab_member a'); $this->waitForElementPresent('link=Add Membership'); + if ($this->isTextPresent("No memberships have been recorded for this contact.")) { + $this->waitForTextPresent('No memberships have been recorded for this contact.'); + } - $this->click('link=Add Membership'); + $this->clickAjaxLink('link=Add Membership'); $this->waitForElementPresent('_qf_Membership_cancel-bottom'); $this->select('price_set_id', "value={$sid}"); -- 2.25.1