function _checkResult($data, $type) {
if ($type == "Contribution") {
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
- $this->type("sort_name", "{$data['last_name']} {$data['first_name']} ");
+ $this->type("sort_name", "{$data['last_name']} {$data['first_name']}");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
$expected = array(
$this->openCiviPage("member/search", "reset=1", "member_join_date_low");
// select contact
- $this->type("sort_name", "{$data['last_name']} {$data['first_name']} ");
+ $this->type("sort_name", "{$data['last_name']} {$data['first_name']}");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->click("xpath=//div[@id='memberSearch']//table/tbody/tr[1]/td[11]/span/a[text()='View']");
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
- $this->type('sort_name', "$lastName $firstName ");
+ $this->type('sort_name', "$lastName $firstName");
$this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);
//Find Contribution
$this->openCiviPage("contribute/search", "reset=1", 'contribution_date_low');
- $this->type('sort_name', "$lastName $firstName ");
+ $this->type('sort_name', "$lastName $firstName");
$this->select('financial_type_id',"label=Member Dues");
$this->clickLink('_qf_Search_refresh', "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom', FALSE);
//Find Member
$this->openCiviPage("member/search", "reset=1", 'member_source');
- $this->type('sort_name', "$lastName $firstName ");
+ $this->type('sort_name', "$lastName $firstName");
$this->clickLink('_qf_Search_refresh', "xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", FALSE);
$this->clickLink("xpath=//div[@id='memberSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_MembershipView_cancel-bottom', FALSE);
//Find Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
- $this->type("sort_name", "$lastName $firstName ");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='memberSearch']/table/tbody/tr");
$this->click("xpath=//div[@id='memberSearch']/table/tbody/tr/td[11]/span/a[text()='View']");
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//Find Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
- $this->type("sort_name", "$lastName $firstName ");
+ $this->type("sort_name", "$lastName $firstName");
$this->click("_qf_Search_refresh");
$this->waitForPageToLoad($this->getTimeoutMsec());
//Find Contribution
$this->openCiviPage("contribute/search","reset=1", "contribution_date_low");
- $this->type("sort_name", "$lastName $firstName ");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']");
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE);