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

fixes for WebTest_Contribute_StandaloneAddTest

parent e5e4f756
Branches
Tags
No related merge requests found
......@@ -147,15 +147,24 @@ class WebTest_Contribute_StandaloneAddTest extends CiviSeleniumTestCase {
'Contribution Status' => 'Completed',
'Paid By' => 'Check',
'Check Number' => 'check #1041',
'Soft Credit To' => "{$softCreditFname} {$softCreditLname}",
);
foreach ($expected as $label => $value) {
$this->verifyText("xpath=id('ContributionView')/div[2]/table[1]/tbody//tr/td[1][text()='$label']/../td[2]", preg_quote($value));
}
// 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}']");
// verify if soft credit was created successfully
$expected = array(
'Soft Credit To' => "{$softCreditFname} {$softCreditLname}",
'Amount' => '100.00',
);
foreach ($expected as $value) {
$this->verifyText("css=table.crm-soft-credit-listing", preg_quote($value));
}
// go to first soft creditor contact view page
$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