$this->click("_qf_Campaign_upload-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
- $this->assertElementContainsText('crm-notification-container', "Campaign Campaign $title has been saved.",
- "Status message didn't show up after saving campaign!"
- );
+ $this->waitForText('crm-notification-container', "Campaign $title");
//Opening Edit Page of the created Campaign
$this->waitForElementPresent("//div[@id='campaignList']/div[@class='dataTables_wrapper']/table/tbody//tr/td[text()='{$campaignTitle}']/../td[13]/span/a[text()='Edit']");
$fetchedVaue = $this->getValue('description');
$this->assertEquals($campaignDescription, $fetchedVaue);
}
-}
+ function testAjaxCustomGroupLoad() {
+ $this->webtestLogin();
+ $triggerElement = array('name' => 'campaign_type_id', 'type' => 'select');
+ $customSets = array(
+ array('entity' => 'Campaign', 'subEntity' => 'Referral Program', 'triggerElement' => $triggerElement),
+ array('entity' => 'Campaign', 'subEntity' => 'Constituent Engagement', 'triggerElement' => $triggerElement)
+ );
+
+ $pageUrl = array('url' => 'campaign/add', 'args' => 'reset=1');
+ $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
+ }
+}
\ No newline at end of file