function _checkResult($data, $type) {
if ($type == "Contribution") {
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
- $this->type("sort_name", "{$data['first_name']} {$data['last_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['first_name']} {$data['last_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', "$firstName $lastName");
+ $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', "$firstName $lastName");
+ $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', "$firstName $lastName");
+ $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 Contribution
$this->openCiviPage("contribute/search", "reset=1", "contribution_date_low");
- $this->type("sort_name", "$firstName $lastName");
+ $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);
$this->openCiviPage("event/search", "reset=1");
$eventTypeName = 'Fundraiser';
+ $this->waitForElementPresent('event_type_id');
$this->select2("event_type_id", $eventTypeName);
$this->select('event_relative', "label=Choose Date Range");
$this->webtestFillDate('event_start_date_low', '-2 year');
//Find Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
- $this->type("sort_name", "$firstName $lastName");
+ $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", "$firstName $lastName");
+ $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", "$firstName $lastName");
+ $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 Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
- $this->type("sort_name", "$firstName $lastName");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//Find Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
- $this->type("sort_name", "$firstName $lastName");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//Find Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
- $this->type("sort_name", "$firstName $lastName");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//Find Member
$this->openCiviPage("member/search", "reset=1", "member_end_date_high");
- $this->type("sort_name", "$firstName $lastName");
+ $this->type("sort_name", "$lastName $firstName");
$this->clickLink("_qf_Search_refresh", 'css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->click('css=#memberSearch table tbody tr td span a.action-item:first-child');
$this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
//Find Member
$this->openCiviPage('member/search', 'reset=1', 'member_end_date_high');
- $this->type("sort_name", "$firstName1 $lastName1");
+ $this->type("sort_name", "$lastName1 $firstName1");
$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");