$testUserLastName = "Testuserlast";
$this->type("first_name", $testUserFirstName);
$this->type("last_name", $testUserLastName);
- $this->clickLink("_qf_Edit_next", "profilewrap4");
+ $this->clickLink("_qf_Edit_next", "profilewrap4", FALSE);
$this->openCiviPage('case/add', 'reset=1&action=add&atype=13&context=standalone', '_qf_Case_upload-bottom');
$this->type("{$cusId_1}", $custFname);
$this->type("{$cusId_2}", $custMname);
$this->type("{$cusId_3}", $custLname);
- $this->clickLink("_qf_Case_upload-bottom", "_qf_CaseView_cancel-bottom");
+ $this->clickLink("_qf_Case_upload-bottom", "_qf_CaseView_cancel-bottom", FALSE);
// Is status message correct?
$this->checkCRMAlert("Case opened successfully.");
- $this->clickLink("_qf_CaseView_cancel-bottom");
+ $this->click("_qf_CaseView_cancel-bottom");
$this->openCiviPage('case', 'reset=1', "xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[8]/a[text()='Open Case']");
$this->clickPopupLink("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[8]/a[text()='Open Case']");
"Priority" => "Normal",
);
$this->webtestVerifyTabularData($openCaseData);
+ $this->waitForElementPresent("xpath=//span[@class='ui-button-icon-primary ui-icon fa-times']");
$this->click("xpath=//span[@class='ui-button-icon-primary ui-icon fa-times']");
// verify if custom data is present
$testUserLastName = "Testuserlast";
$this->type("first_name", $testUserFirstName);
$this->type("last_name", $testUserLastName);
- $this->clickLink("_qf_Edit_next", "profilewrap4");
+ $this->clickLink("_qf_Edit_next", "profilewrap4", FALSE);
$this->openCiviPage('case/add', 'reset=1&action=add&atype=13&context=standalone', '_qf_Case_upload-bottom');
$this->type("duration", "20");
$this->type("{$cusId_1}", $custFname);
$this->type("{$cusId_2}", $custLname);
- $this->clickLink("_qf_Case_upload-bottom", "_qf_CaseView_cancel-bottom");
+ $this->clickLink("_qf_Case_upload-bottom", "_qf_CaseView_cancel-bottom", FALSE);
// Is status message correct?
$this->checkCRMAlert("Case opened successfully.");
- $this->clickLink("_qf_CaseView_cancel-bottom");
+ $this->click("_qf_CaseView_cancel-bottom");
$this->openCiviPage('case', 'reset=1');
$this->waitForElementPresent("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[8]/a[text()='Open Case']");
// verify if custom data is present
$this->openCiviPage('case', 'reset=1');
- $this->clickLink("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[9]/span/a[text()='Manage']", "css=#{$customGrp1} .crm-accordion-header");
+ $this->clickLink("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[9]/span/a[text()='Manage']", "css=#{$customGrp1} .crm-accordion-header", FALSE);
$this->click("css=#{$customGrp1} .crm-accordion-header");
//check the status message
$this->waitForText('crm-notification-container', "Relationship created.");
- $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']//table/tbody//tr/td[9]/span/a[text()='View']");
- $this->click("xpath=//div[@class='dataTables_wrapper no-footer']//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->waitForElementPresent("xpath=//table[@class='crm-info-panel']");
$this->webtestVerifyTabularData(
$this->webtestFillAutocomplete($firstName1);
// fill in Membership Organization
+ $this->waitForElementPresent("membership_type_id[0]");
$this->select("membership_type_id[0]", "label={$membershipTypes['member_of_contact']}");
// select membership type
$this->webtestFillDate('start_date');
// Clicking save.
- $this->clickLink("_qf_Membership_upload");
+ $this->click("_qf_Membership_upload");
// page was loaded
$this->waitForTextPresent("Membership StandaloneAddTest Webtest");
$this->enterValues(1, 1, 'Membership', 'Membership Type', NULL, '=', array($membershipTypes['membership_type']));
$this->clickLink('_qf_Builder_refresh');
+ $this->waitForAjaxContent();
$this->waitForText('search-status', "2 Contacts");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, '=', array('New'));
$this->clickLink('_qf_Builder_refresh');
+ $this->waitForAjaxContent();
$this->waitForText('search-status', "1 Contact");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, '=', array('Grace'));
$this->clickLink('_qf_Builder_refresh');
+ $this->waitForAjaxContent();
$this->waitForText('search-status', "1 Contact");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->click("xpath=//div[@id='map-field']/div[1]/table/tbody/tr[2]/td/a");
$this->enterValues(1, 2, 'Membership', 'Membership Status', NULL, 'IN', array('New', 'Grace'));
$this->clickLink('_qf_Builder_refresh');
+ $this->waitForAjaxContent();
$this->waitForText('search-status', "2 Contacts");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->click("xpath=//div[@class='crm-accordion-header crm-master-accordion-header']");
$this->multiselect2("membership_status_id", array("New", "Grace"));
$this->clickLink('_qf_Search_refresh');
+ $this->waitForAjaxContent();
$this->waitForText('search-status', "2 Results");
$this->openCiviPage("member/search", "reset=1", "_qf_Search_refresh");
$this->select2('membership_type_id', $membershipTypes['membership_type'], TRUE);
$this->multiselect2("membership_status_id", array("New"));
$this->click('_qf_Search_refresh');
+ $this->waitForAjaxContent();
$this->waitForText('search-status', "1 Result");
}
$this->selectFrame("xpath=//iframe[@id='{$fieldName}_ifr']");
}
- $this->verifyText('//html/body', preg_quote("{$signature}"));
+ $this->assertElementContainsText("//html/body", "$signature");
$this->selectFrame('relative=top');
}
$this->addeditFinancialType($financialType);
// Assign the created Financial Account $financialAccountTitle to $financialType
+ $this->waitForElementPresent("xpath=id('ltype')");
$this->click("xpath=id('ltype')/div/table/tbody/tr/td[1]/div[text()='$financialType[name]']/../../td[7]//span//a[text()='Accounts']");
$this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']//button//span[contains(text(), 'Assign Account')]");
$this->click("xpath=//div[@class='ui-dialog-buttonset']//button//span[contains(text(), 'Assign Account')]");
);
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);
}
// verify if soft credit was created successfully
);
foreach ($expected as $value) {
- $this->verifyText("css=table.crm-soft-credit-listing", preg_quote($value));
+ $this->assertElementContainsText("css=table.crm-soft-credit-listing", $value);
}
// go to first soft creditor contact view page
$this->waitForElementPresent("css=li#tab_contribute a");
$this->click("css=li#tab_contribute a");
$this->waitForElementPresent("link=Record Contribution (Check, Cash, EFT ...)");
- $this->verifyText("xpath=id('Search')/div[2]/table[2]/tbody/tr[2]/td[1]/a", preg_quote($contact['display_name']));
+ $this->assertElementContainsText("xpath=id('Search')/div[2]/table[2]/tbody/tr[2]/td[1]/a", $contact['display_name']);
// verify soft credit details
$expected = array(
4 => $financialType['name'],
6 => 'Completed',
);
foreach ($expected as $value => $label) {
- $this->verifyText("xpath=id('Search')/div[2]/table[2]/tbody/tr[2]/td[$value]", preg_quote($label));
+ $this->assertElementContainsText("xpath=id('Search')/div[2]/table[2]/tbody/tr[2]/td[$value]", $label);
}
// CRM-17418 fix: Now cancel the contribution
);
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);
}
}