/**
* @param string $groupName
* @param $campaignTitle
- * @param int $id
+ * @param $firstUserName
*/
public function mailingAddTest($groupName, $campaignTitle, $title, $firstUserName) {
//---- create mailing contact and add to mailing Group
$this->type("xpath=//input[@name='mailingName']", "Mailing $mailingName Webtest");
// select campaign
- $this->select2("s2id_crmUiId_4", "Campaign_".$title);
+ $this->select2("s2id_crmUiId_4", "Campaign_" . $title);
// Add the test mailing group
$this->select2("s2id_crmUiId_8", $groupName, TRUE);
$this->select("header_id", "label=Mailing Header");
$this->select("footer_id", "label=Mailing Footer");
-
//---------------Test------------------
////////--Commenting test mailing and mailing preview (test mailing and preview not presently working).
$this->waitForTextPresent("Mailing $mailingName Webtest");
$this->click("xpath=//div[@class='content']//a[text()='~2 recipients']");
$verifyData = array(
- "$firstUserName Smith"=> "$firstUserName.smith@example.org",
- "$firstName Mailson"=> "mailino$firstName@mailson.co.in",
+ "$firstUserName Smith" => "$firstUserName.smith@example.org",
+ "$firstName Mailson" => "mailino$firstName@mailson.co.in",
);
$this->webtestVerifyTabularData($verifyData);
$this->waitForTextPresent("(Include: $groupName)");
$this->select('header_id', "label=Mailing Header");
$this->select('footer_id', "label=Mailing Footer");
-
// click next
$this->click("xpath=//div[@class='crm-wizard-buttons']/button[text()='Next']");
$this->assertChecked("xpath=//input[@id='schedule-send-now']");
$this->waitForTextPresent("Mailing $mailingName Webtest");
$this->click("xpath=//div[@class='content']//a[text()='~1 recipient']");
- $this->webtestVerifyTabularData(array("$firstName Mailson"=> "mailino$firstName@mailson.co.in"));
+ $this->webtestVerifyTabularData(array("$firstName Mailson" => "mailino$firstName@mailson.co.in"));
$this->click("xpath=//button[@title='Close']");
$this->waitForTextPresent("(Include: $groupName)");
//View Activity
$this->openCiviPage('activity/search', "reset=1", "_qf_Search_refresh");
$this->type("sort_name", $firstName);
- $this->select("activity_type_id","label=Bulk Email");
+ $this->select("activity_type_id", "label=Bulk Email");
$this->click("_qf_Search_refresh");
$this->waitForElementPresent("xpath=//form[@id='Search']/div[3]/div/div[2]/table[@class='selector row-highlight']/tbody/tr[2]/td[9]/span/a[1][text()='View']");
$this->click("xpath=//form[@id='Search']/div[3]/div/div[2]/table[@class='selector row-highlight']/tbody/tr[2]/td[9]/span/a[1][text()='View']");