//check the status message
$this->waitForText('crm-notification-container', 'Relationship created.');
- $this->waitForElementPresent("xpath=//div[@id='contact-summary-relationship-tab']/div[@class='crm-contact-relationship-current']/div/table/tbody/tr/td[9]//span//a[text()='View']");
- $this->click("xpath=//div[@id='contact-summary-relationship-tab']/div[@class='crm-contact-relationship-current']/div/table/tbody/tr/td[9]//span//a[text()='View']");
+ $this->waitForElementPresent("xpath=//div[@class='crm-contact-relationship-current']/div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[9]//span//a[text()='View']");
+ $this->click("xpath=//div[@class='crm-contact-relationship-current']/div[@class='dataTables_wrapper no-footer']/table/tbody/tr/td[9]//span//a[text()='View']");
$this->webtestVerifyTabularData(
array(
// select group
$this->select("financial_type_id", "label={$financialType['name']}");
$this->clickLink("_qf_Search_refresh");
- $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td[1]", "2 Result");
- $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td[2]", "Financial Type ID In {$financialType['name']}");
+ $this->assertElementContainsText("xpath=//div[@class='crm-content-block']//div[@id='search-status']/table/tbody/tr[1]/td[1]", "2 Result");
+ $this->assertElementContainsText("xpath=//div[@class='crm-content-block']//div[@id='search-status']/table/tbody/tr[1]/td[2]", "Financial Type ID In {$financialType['name']}");
$this->openCiviPage("contact/search/advanced", "reset=1", "_qf_Advanced_refresh-top");
$this->clickAjaxLink('CiviContribute', "financial_type_id");
// select group
$this->select("financial_type_id", "label={$financialType['name']}");
$this->clickLink("_qf_Advanced_refresh-top");
- $this->assertElementContainsText("xpath=//div[@id='search-status']//table/tbody/tr[1]/td[1]", "2 Contacts");
- $this->assertElementContainsText("xpath=//div[@id='search-status']//table/tbody/tr[1]/td[2]", "Financial Type ID In {$financialType['name']}");
+ $this->assertElementContainsText("xpath=//div[@class='crm-content-block']//div[@id='search-status']//table/tbody/tr[1]/td[1]", "2 Contacts");
+ $this->assertElementContainsText("xpath=//div[@class='crm-content-block']//div[@id='search-status']//table/tbody/tr[1]/td[2]", "Financial Type ID In {$financialType['name']}");
}
/**
$this->waitForElementPresent("thankyou_date");
$this->type("note", "This is a test note.");
+ $this->waitForElementPresent("non_deductible_amount");
$this->type("non_deductible_amount", "10");
$this->type("fee_amount", "0");
$this->type("net_amount", "0");
$this->webtestFillDate('thankyou_date');
// Clicking save.
- $this->clickLink("_qf_Contribution_upload");
+ $this->click("_qf_Contribution_upload");
// Is status message correct?
$this->checkCRMAlert("The contribution record has been saved.");