$this->select2("xpath=//tr[@class='addRow']/td[contains(text(),'Add activity:')]/span/div/a", $tActivityType, FALSE, TRUE);
}
- $this->clickAjaxLink("xpath=//div[@class='crm-submit-buttons']/span/input[@value='Save']");
+ $this->click('css=.crm-submit-buttons button:first-child');
$this->openCiviPage('case/add', 'reset=1&action=add&atype=13&context=standalone', '_qf_Case_upload-bottom');
$client = $this->createDialogContact("client_id");
$this->waitForElementPresent("xpath=//*[@id='crm-main-content-wrapper']/div/div/div[2]/a/span[contains(text(),'New Case Type')]");
$this->click("xpath=//table/tbody//tr/td[1][text()='{$caseTypeLabel}']/../td[5]/span/a[text()='Edit']");
- $this->waitForElementPresent("xpath=//div[@class='crm-submit-buttons']/span/input[@value='Save']");
+ $this->waitForElementPresent("css=.crm-submit-buttons button:first-child");
$editCaseTypeLabel = "Case Type Edit" . substr(sha1(rand()), 0, 7);
$this->waitForElementPresent('title');
$this->click("xpath=//a[text()='Standard Timeline']");
$this->select2("xpath=//tr[@class='addRow']/td[contains(text(),'Add activity:')]/span/div/a", 'SMS', FALSE, TRUE);
- $this->click("xpath=//div[@class='crm-submit-buttons']/span/input[@value='Save']");
+ $this->click('css=.crm-submit-buttons button:first-child');
$this->waitForElementPresent("xpath=//*[@id='crm-main-content-wrapper']/div/div/div[2]/a/span[contains(text(),'New Case Type')]");
$this->verifyText("xpath=//table/tbody//tr/td[contains(text(),'$editCaseTypeLabel')]", $editCaseTypeLabel);
$this->waitForElementPresent("contribution_date_low");
$this->type("sort_name", "Anderson");
- $this->click('contribution_status_id');
+ $this->multiselect2('contribution_status_id', array("Completed"));
$this->click("_qf_Search_refresh");
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->clickLink("xpath=//tr[@id='rowid{$contriIDOff}']/td[11]/span/a[2]", "total_amount", FALSE);
$this->type("total_amount", "90");
$this->clickLink('_qf_Contribution_upload', '', FALSE);
+ $this->waitForText('crm-notification-container', "The sum of fee amount and net amount must be equal to total amount");
+ $this->type("net_amount", "90");
+ $this->clickLink('_qf_Contribution_upload', '', FALSE);
// Is status message correct?
$this->waitForText('crm-notification-container', "The contribution record has been saved.");
// Enter Event Title, Summary and Description
$this->select("event_type_id", "value=4");
$this->select("default_role_id", "value=1");
+ $this->waitForAjaxContent();
$this->type("title", "Test Event");
$this->type("summary", "This is a great conference. Sign up now!");
$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',
- "it is currently in use by one or more active events or contribution pages or contributions or event templates.");
+ $this->waitForText('price_set_used_by', "Unable to delete the 'Test Field' Price Field - it is currently in use by one or more active events or contribution pages or contributions or event templates. If you no longer want to use this price set, click the event title below, and modify the fees for that event.");
//check the delete for priceset
$this->openCiviPage("admin/price", "reset=1");
$this->type("xpath=//*[@name='body_text']", "This is text formatted content for Mailing {$MailingSubject} Webtest.$tokens");
$this->click("xpath=//div[@class='preview-popup']//a[text()='Preview as Plain Text']");
- $this->waitForTextPresent("This is text formatted content for Mailing {$MailingSubject} Webtest.$tokens");
+ $this->waitForTextPresent("This is text formatted content for Mailing {$MailingSubject} Webtest.");
$this->waitForAjaxContent();
$this->click("xpath=//button[@title='Close']");
$this->type("xpath=//*[@name='body_text']", "This is text formatted content for Mailing {$MailingSubject} Webtest.$tokens");
$this->click("xpath=//div[@class='preview-popup']//a[text()='Preview as Plain Text']");
- $this->waitForTextPresent("This is text formatted content for Mailing {$MailingSubject} Webtest.$tokens");
+ $this->waitForTextPresent("This is text formatted content for Mailing {$MailingSubject} Webtest.");
$this->waitForAjaxContent();
$this->click("xpath=//button[@title='Close']");
// fill subject for mailing
$BMailingSubject = substr(sha1(rand()), 0, 7);
$this->type("xpath=//input[@name='subjectB']", "Test subject {$BMailingSubject} for Webtest");
- $this->waitForElementPresent("xpath=//div[@id='tab-mailingB']//div[text()='Plain Text']");
// HTML format message
$BHTMLMessage = "This is HTML formatted content for Mailing {$BMailingSubject} Webtest.";
//$this->click("xpath=//button[@title='Close']");
// Open Plain-text Format pane and type text format msg
- $this->click("xpath=//div[@id='tab-mailingB']//div[text()='Plain Text']");
+ $this->waitForElementPresent("xpath=//div[@id='tab-mailingB']//div[contains(text(), 'Plain Text')]");
+ $this->click("xpath=//div[@id='tab-mailingB']//div[contains(text(), 'Plain Text')]");
$this->type("xpath=//div[@id='tab-mailingB']//*[@name='body_text']", "This is text formatted content for Mailing {$BMailingSubject} Webtest.$tokens");
$this->click("xpath=//div[@crm-mailing='abtest.mailings.b']//div[@class='preview-popup']//a[text()='Preview as Plain Text']");