Create Account
setTimeout 45000
open index.php/workflows/default?clearingSearch=1
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create
assertTextPresent Workflows
assertTextPresent Templates
assertTextPresent Time Queue
assertTextPresent Message Queue
assertTextPresent Ordering
clickAndWait link=Create Template
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Email Template
clickAndWait save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
waitForTextPresent Subject cannot be blank.
waitForTextPresent Please provide at least one of the contents field.
assertSelectedLabel EmailTemplate_modelClassName_value Accounts
click id=EmailTemplate_name
type id=EmailTemplate_name EmailTemplateTest ${randomSuffix}
click id=EmailTemplate_subject
type id=EmailTemplate_subject Email Template Subject ${randomSuffix}
click id=EmailTemplate_textContent
type id=EmailTemplate_textContent Test
clickAndWait link=Save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent EmailTemplateTest ${randomSuffix}
setSpeed 3000
assertText //div[@id='EmailTemplateEditAndDetailsView']/div/div[2]/div[1]/table/tbody/tr[1]/td Accounts
assertText //div[@id='EmailTemplateEditAndDetailsView']/div/div[2]/div[1]/table/tbody/tr[2]/td EmailTemplateTest ${randomSuffix}
assertText //div[@id='EmailTemplateEditAndDetailsView']/div/div[2]/div[1]/table/tbody/tr[3]/td Email Template Subject ${randomSuffix}
assertText //div[@id='tab1'] Test
setSpeed 0