Skip to content
Snippets Groups Projects
Commit 6b14c845 authored by yashodha's avatar yashodha
Browse files

fixed contribute PCP webtest

parent b0feae81
No related branches found
No related tags found
No related merge requests found
......@@ -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}"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment