X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FCampaign%2FCampaignDescriptionTest.php;h=9c7b663446ac7ba6a16eee3b499f747cfa614fe9;hb=16a4b3539eaeb14dc4dc5edd686dc04eb5b6e7ef;hp=ed5fb79ccd153776af1cc3821548fd9bda45190b;hpb=25f83d3a3b009f5d3861e72a3cbb6b201892ee7f;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php b/tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php index ed5fb79ccd..9c7b663446 100644 --- a/tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php +++ b/tests/phpunit/WebTest/Campaign/CampaignDescriptionTest.php @@ -1,9 +1,9 @@ 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); } @@ -96,4 +96,4 @@ class WebTest_Campaign_CampaignDescriptionTest extends CiviSeleniumTestCase { $pageUrl = array('url' => 'campaign/add', 'args' => 'reset=1'); $this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl); } -} \ No newline at end of file +}