From: yashodha Date: Wed, 14 Aug 2013 07:32:37 +0000 (+0530) Subject: fixed contribute PCP webtest X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6b14c8457d1cfc768300e595cc36854c38b0a80f;p=civicrm-core.git fixed contribute PCP webtest --- diff --git a/tests/phpunit/WebTest/Contribute/PCPAddTest.php b/tests/phpunit/WebTest/Contribute/PCPAddTest.php index d505306d62..a4ea3e4e99 100755 --- a/tests/phpunit/WebTest/Contribute/PCPAddTest.php +++ b/tests/phpunit/WebTest/Contribute/PCPAddTest.php @@ -193,11 +193,11 @@ class WebTest_Contribute_PCPAddTest extends CiviSeleniumTestCase { $this->webtestVerifyTabularData($expected); //Check for SoftCredit - $this->verifyText("xpath=id('PCPView')//div[@class='crm-accordion-body']/table/tbody/tr[1]/td[2]/a[text()]", preg_quote($pcpTitle)); - $this->verifyText("xpath=id('PCPView')//div[@class='crm-accordion-body']/table/tbody/tr[2]/td[2]/a[text()]", preg_quote("{$firstName} {$lastName}")); - + $softCreditor = "{$firstName} {$lastName}"; + $this->verifyText("xpath=//table[@class='crm-info-panel crm-soft-credit-listing']/tbody/tr/td[1]", preg_quote($softCreditor), 'In line ' . __LINE__); + // Check PCP Summary Report - $this->openCiviPage('report/instance/15', 'reset=1'); + $this->openCiviPage('report/instance/16', 'reset=1'); $this->verifyText("PCP", preg_quote($pcpTitle)); $this->verifyText("PCP", preg_quote("{$lastName}, {$firstName}")); }