//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']", FALSE);
$this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", '_qf_ContributionView_cancel-bottom', FALSE);
$this->type('source', 'Event StandaloneAddTest Webtest');
// Select an event fee
- $this->waitForElementPresent("xpath=//div[@id='priceset']/div[2]/div[2]");
+ $this->waitForElementPresent("xpath=//div[@id='priceset']/div[2]/div[2]/input");
$this->type("xpath=//div[@id='priceset']/div[2]/div[2]/input", '5');
$this->fireEvent("xpath=//div[@id='priceset']/div[2]/div[2]/input", 'blur');
$this->waitForElementPresent("xpath=//div[@id='priceset']/div[3]/div[2]/div[1]/span/input");
//check the delete for price field
$this->openCiviPage("admin/price/field", "reset=1&action=browse&sid={$sid}");
+ $this->waitForElementPresent("xpath=//table[@id='options']/tbody/tr/td[9]/span[2]");
$this->click("xpath=//table[@id='options']/tbody/tr/td[9]/span[2]/ul/li[2]/a");
//assert the message
$this->waitForText('price_set_used_by',
// visit event search page
$this->openCiviPage("event/search", "reset=1");
+ $this->waitForElementPresent('_qf_Search_refresh');
$eventName = "Fall Fundraiser Dinner";
$this->select2("event_id", $eventName);
$this->webtestFillDate('event_end_date_high', '+1 year');
- $this->clickLink("_qf_Search_refresh", "search-status");
+ $this->click("_qf_Search_refresh");
+ $this->waitForElementPresent("search-status");
$stringsToCheck = array(
"Start Date - greater than or equal to",
// page was loaded
$this->waitForTextPresent($sourceText);
- $this->waitForElementPresent("xpath=//div[@id='memberships']//table/tbody/tr/td[9]/span/a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@id='memberships']/div/table/tbody/tr/td[9]/span/a[1][text()='View']");
// click through to the membership view screen
- $this->click("xpath=//div[@id='memberships']//table/tbody/tr/td[9]/span/a[text()='View']");
+ $this->click("xpath=//div[@id='memberships']/div/table/tbody/tr/td[9]/span/a[1][text()='View']");
$this->waitForElementPresent('_qf_MembershipView_cancel-bottom');
// page was loaded
$this->waitForTextPresent($sourceText);
- $this->waitForElementPresent("xpath=//div[@id='memberships']/div/table/tbody/tr/td[9]/span[1]/a[1][text()='View']");
+ $this->waitForElementPresent("xpath=//div[@id='memberships']/div/table/tbody/tr/td[9]/span/a[1][text()='View']");
// click through to the membership view screen
- $this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[9]/span[1]/a[1][text()='View']");
+ $this->click("xpath=//div[@id='memberships']/div/table/tbody/tr/td[9]/span/a[1][text()='View']");
$this->waitForElementPresent('_qf_MembershipView_cancel-bottom');