fixed contribute PCP webtest
authoryashodha <yashodha.chaku@webaccess.co.in>
Wed, 14 Aug 2013 07:32:37 +0000 (13:02 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Wed, 14 Aug 2013 07:32:37 +0000 (13:02 +0530)
tests/phpunit/WebTest/Contribute/PCPAddTest.php

index d505306d62a88bf0495de00410676d026499a608..a4ea3e4e99aba6850f2482f83670583b795b0ec0 100755 (executable)
@@ -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}"));
   }