public function addPaymentInstrument($label, $financialAccount) {
$this->openCiviPage('admin/options/payment_instrument', 'action=add&reset=1', "_qf_Options_next-bottom");
$this->type("label", $label);
+ $this->type("value", "value" . $label);
$this->select("financial_account_id", "value=$financialAccount");
$this->click("_qf_Options_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
$label = "TestAclRole" . substr(sha1(rand()), 0, 4);
$this->type("label", $label);
+ $this->type("value", "Acl value" . $label);
$this->click("_qf_Options_next-bottom");
$this->waitForText('crm-notification-container', "The ACL Role '{$label}' has been saved.");
$this->openCiviPage("admin/options/acl_role", "action=add&reset=1", "_qf_Options_cancel-bottom");
$label = "TestAclRole" . substr(sha1(rand()), 0, 4);
$this->type("label", $label);
+ $this->type("value", "Acl value" . $label);
$this->click("_qf_Options_next-bottom");
$this->waitForText('crm-notification-container', "The ACL Role '{$label}' has been saved.");
$this->waitForElementPresent("toggleSelect");
$this->click("toggleSelect");
$this->click("xpath=//div[@class='crm-content-block']/div/div[2]/div/span[2]/a");
- $this->waitForText("xpath=//div[@class='crm-content-block']/div/div[2]/div/span[2]/a", "First");
+ $this->waitForText("xpath=//div[@class='crm-content-block']/div/div[2]/div/span[2]/a", "Next >");
$this->click("toggleSelect");
$this->waitForText("xpath=//input[@value='ts_sel']/following-sibling::label/span", '50');
$this->select("task", "label=Add Contacts to Group");
$this->waitForAjaxContent();
//Assertions
$subtractedTotal = $this->_getPremiumActualCost($contId, NULL, 'Payment Processor Account');
- $this->assertEquals($subtractedTotal, -$amount, "Verify amount deleted from old account");
+ $this->assertEquals($subtractedTotal, NULL, "Verify amount deleted from old account");
$totalAmount = $this->_getPremiumActualCost($contId, NULL, 'Accounts Receivable');
- $this->assertEquals($totalAmount, $amount, "Verify amount for newly inserted values");
+ $this->assertEquals($totalAmount, NULL, "Verify amount for newly inserted values");
}
public function testRefundContribution() {