minor test fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Tue, 13 Aug 2013 11:31:30 +0000 (17:01 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Tue, 13 Aug 2013 11:31:30 +0000 (17:01 +0530)
tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php

index 4bf8969ef13c1defd4b037655da522d6d7fd350b..f6596a0fe02c436f02ee322edb343319484d6283 100644 (file)
@@ -160,12 +160,11 @@ class WebTest_Contribute_UpdatePendingContributionTest extends CiviSeleniumTestC
       'Contribution Status' => 'Pending',
       'Paid By' => 'Check',
       'Check Number' => 'check #1041',
-      'Soft Credit To' => "{$softCreditFname} {$softCreditLname}",
     );
     $this->webtestVerifyTabularData($expected);
 
-    // go to soft creditor contact view page
-    $this->click("xpath=id('ContributionView')/div[2]/table[1]/tbody//tr/td[1][text()='Soft Credit To']/../td[2]/a[text()='{$softCreditFname} {$softCreditLname}']");
+    // go to soft creditor contact view page - this also does the soft credit check
+    $this->click("xpath=id('ContributionView')/div[2]/div/div[1][contains(text(), 'Soft Credit')]/../div[2]/table[1]/tbody//tr/td[1]/a[contains(text(), '{$softCreditFname} {$softCreditLname}')]");
 
     // go to contribution tab
     $this->waitForElementPresent("css=li#tab_contribute a");