Delete Email Template
setTimeout 45000
open index.php/marketing/default/dashboardDetails
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Dashboard
assertTextPresent Lists
assertTextPresent Templates
assertTextPresent Campaigns
clickAndWait //div[@id='SecuredActionBarForMarketingSearchAndListView']/div[1]/nav[1]/div[3]/a[1]/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=EmailTemplatesSearchForm_anyMixedAttributes Test Email Template Using Plain Text ${randomSuffix}
keyUp id=EmailTemplatesSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-view']/div[2]/table/tbody/tr/td[2] Test Email Template Using Plain Text ${randomSuffix}
verifyTextPresent Test Email Template Using Plain Text ${randomSuffix}
verifyValue EmailTemplatesSearchForm_anyMixedAttributes Test Email Template Using Plain Text ${randomSuffix}
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this email template?
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextNotPresent Test Email Template Using Plain Text ${randomSuffix}
open index.php/emailTemplates/default/listForMarketing?clearingSearch=1
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0