From: Pratik Joshi Date: Tue, 13 Aug 2013 11:31:30 +0000 (+0530) Subject: minor test fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ce892f61615f5e79b30ad1a97e4cfe4f9f96a9fb;p=civicrm-core.git minor test fix --- diff --git a/tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php b/tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php index 4bf8969ef1..f6596a0fe0 100644 --- a/tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php +++ b/tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php @@ -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");