Create MarketingList
setTimeout 45000
storeGlobal javascript{Math.floor(Math.random()*11000)} randomSuffix
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
assertText link=Create List Create List
clickAndWait link=Create List
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Create Marketing List
clickAndWait save
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Name cannot be blank.
type id=MarketingList_name Test Marketing List ${randomSuffix}
type id=MarketingList_description test description
type id=MarketingList_fromName Development Team
type id=MarketingList_fromAddress development@company.com
click id=MarketingList_owner_SelectLink
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=UsersSearchForm_anyMixedAttributes Jason Blue
keyUp id=UsersSearchForm_anyMixedAttributes \10
waitForText //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a Jason Blue
verifyTextPresent Jason Blue
verifyValue UsersSearchForm_anyMixedAttributes Jason Blue
assertTextPresent Jason Blue
click //div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Marketing List ${randomSuffix}