Skip to content
Snippets Groups Projects
Commit 48762c66 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

add classes for soft credit listing and fixed WebTest_Contribute_ContactContextAddTest

parent d6fac112
Branches
Tags
No related merge requests found
......@@ -202,17 +202,17 @@
</table>
{if $softContributions and !$pcp_id} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
<div class="crm-accordion-wrapper ">
<div class="crm-accordion-wrapper crm-soft-credit-pane">
<div class="crm-accordion-header">
{ts}Soft Credit{/ts}
</div>
<div class="crm-accordion-body">
<table class="crm-info-panel">
<table class="crm-info-panel crm-soft-credit-listing">
{foreach from=$softContributions.soft_credit item="softCont"}
<tr>
<td>
<a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$softCont.contact_id`"}"
id="view_contact" title="{ts}View contact record{/ts}">{$softCont.contact_name}
title="{ts}View contact record{/ts}">{$softCont.contact_name}
</a>
</td>
<td>{$softCont.amount|crmMoney:$currency}</td>
......
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment