<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
-class WebTest_Campaign_CampaignDescriptionTest extends CiviSeleniumTestCase {
- protected $captureScreenshotOnFailure = TRUE;
- protected $screenshotPath = '/var/www/api.dev.civicrm.org/public/sc';
- protected $screenshotUrl = 'http://api.dev.civicrm.org/sc/';
+/**
+ * Class WebTest_Campaign_CampaignDescriptionTest
+ */
+class WebTest_Campaign_CampaignDescriptionTest extends CiviSeleniumTestCase {
protected function setUp() {
parent::setUp();
$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']");
- $this->clickLink("//div[@id='campaignList']/div[@class='dataTables_wrapper']/table/tbody//tr/td[text()='{$campaignTitle}']/../td[13]/span/a[text()='Edit']", "//textarea[@id='description']");
+ $this->waitForElementPresent("//div[@id='campaignList']/div[@id='campaigns_wrapper']/table/tbody//tr/td[text()='{$campaignTitle}']/../td[13]/span/a[text()='Edit']");
+ $this->clickLink("//div[@id='campaignList']/div[@id='campaigns_wrapper']/table/tbody//tr/td[text()='{$campaignTitle}']/../td[13]/span/a[text()='Edit']", "//textarea[@id='description']");
$fetchedVaue = $this->getValue('description');
$this->assertEquals($campaignDescription, $fetchedVaue);
}
$pageUrl = array('url' => 'campaign/add', 'args' => 'reset=1');
$this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
}
-}
\ No newline at end of file
+}