From ce892f61615f5e79b30ad1a97e4cfe4f9f96a9fb Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Tue, 13 Aug 2013 17:01:30 +0530 Subject: [PATCH] minor test fix --- .../WebTest/Contribute/UpdatePendingContributionTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); -- 2.25.1