From 48762c665eaffb219b484621bbc56cfb385163cb Mon Sep 17 00:00:00 2001 From: kurund Date: Mon, 12 Aug 2013 22:41:04 +0530 Subject: [PATCH] add classes for soft credit listing and fixed WebTest_Contribute_ContactContextAddTest --- templates/CRM/Contribute/Form/ContributionView.tpl | 6 +++--- tests/phpunit/WebTest/Contribute/ContactContextAddTest.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Contribute/Form/ContributionView.tpl b/templates/CRM/Contribute/Form/ContributionView.tpl index 210862dc32..2c4181598f 100644 --- a/templates/CRM/Contribute/Form/ContributionView.tpl +++ b/templates/CRM/Contribute/Form/ContributionView.tpl @@ -202,17 +202,17 @@ {if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *} -
+
{ts}Soft Credit{/ts}
- +
{foreach from=$softContributions.soft_credit item="softCont"} diff --git a/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php b/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php index da7eaf6a14..24ed35fdd8 100644 --- a/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php +++ b/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php @@ -180,7 +180,7 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase { $this->assertDBCompareValues('CRM_Contribute_DAO_Contribution', $searchParams, $compareParams); // go to soft creditor contact view page - $this->click( "xpath=id('ContributionView')/div[2]/table[1]/tbody/tr[17]/td[2]/a[text()='{$softCreditFname} {$softCreditLname}']" ); + $this->click("css=table.crm-soft-credit-listing tbody tr td a"); // go to contribution tab $this->waitForElementPresent("css=li#tab_contribute a"); -- 2.25.1
{$softCont.contact_name} + title="{ts}View contact record{/ts}">{$softCont.contact_name} {$softCont.amount|crmMoney:$currency}