+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$this->clickLink("newCustomDataGroup");
$this->type("title", $customGrp1);
$this->select("extends[0]", "value=Case");
- // Because it tends to cause problems, all uses of sleep() must be justified in comments
- // Sleep should never be used for wait for anything to load from the server
- // Justification for this instance: FIXME
- sleep(1);
+ $this->waitForAjaxContent();
$this->select("extends_1", "value=2");
$this->clickLink("_qf_Group_next-bottom");
$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
$this->openCiviPage('case', 'reset=1');
+ $this->waitForElementPresent("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[9]/span/a[1][text()='Manage']");
$this->clickLink("xpath=//table[@class='caseSelector']/tbody//tr/td[2]/a[text()='{$client['sort_name']}']/../../td[9]/span/a[1][text()='Manage']");
$this->clickAjaxLink("css=#{$customGrp1} .crm-accordion-header", "css=#{$customGrp1} a.button");
$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");
$cusId_1 = 'custom_' . $customId[0] . '_1';
$cusId_2 = 'custom_' . $customId[1] . '_1';
$this->clickLink("css=#{$customGrp1} a.button", '_qf_CustomData_cancel-bottom', FALSE);
-
+ $this->waitForElementPresent("xpath=//span[@class='ui-dialog-title']");
$this->assertElementContainsText("xpath=//span[@class='ui-dialog-title']", "Edit $customGrp1");
$custFname = "Miky" . substr(sha1(rand()), 0, 7);