+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->type("sort_name", "Individual");
+ $this->waitForElementPresent("contribution_status_id");
$this->multiselect2('contribution_status_id', array("Pending"));
$this->clickLink("_qf_Search_refresh");
$this->waitForAjaxContent();
$this->select('task', "label=Update pending contribution status");
$this->waitForAjaxContent();
+ $this->waitForElementPresent("contribution_status_id");
$this->select('contribution_status_id', 'label=Completed');
$this->waitForAjaxContent();
$this->click('_qf_Status_next');
$this->waitForElementPresent("contribution_date_low");
$this->type("sort_name", "Individual");
+ $this->waitForElementPresent("contribution_status_id");
$this->multiselect2('contribution_status_id', array("Completed"));
$this->click("_qf_Search_refresh");
// Search the participants
$this->openCiviPage("event/search", "reset=1", '_qf_Search_refresh');
- $eventName = 'Rain';
- $this->select2("event_id", $eventName);
+ $eventName = 'Rain-forest Cup Youth Soccer Tournament';
+ $this->select2("event_id", $eventName, TRUE);
$this->click('_qf_Search_refresh');
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
$this->select("financial_type_id", "value=1");
//Contribution status
+ $this->waitForElementPresent("contribution_status_id");
$this->select("contribution_status_id", "label=Pending");
// total amount
'Contribution Status' => 'Pending',
);
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));
+ $this->assertElementContainsText("xpath=id('ContributionView')/div[2]/table[1]/tbody//tr/td[1][text()='$label']/../td[2]", $value);
}
}