Conversation for testing options
setTimeout 45000
open index.php/mashableInbox/default/list
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/conversations/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create Conversation
verifyElementPresent id=Conversation_subject
type id=Conversation_subject Test CFOSubject ${randomSuffix}
verifyElementPresent id=Conversation_description
type id=Conversation_description Test Conversation Description
assertText link=Save Save
clickAndWait link=Save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test CFOSubject ${randomSuffix}
open index.php/mashableInbox/default/list
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='MashableInboxActionBarForViews']/nav/div[2]/a/span[1]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=MashableInboxForm_optionForModel_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyElementPresent id=MashableInboxForm_searchTerm
type id=MashableInboxForm_searchTerm Test CFOSubject ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test CFOSubject ${randomSuffix}
assertText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test CFOSubject ${randomSuffix}
verifyElementPresent id=list-view-rowSelector_0
click id=list-view-rowSelector_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //li[@id='list-view-closeSelected']/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyElementPresent id=MashableInboxForm_searchTerm
type id=MashableInboxForm_searchTerm Test CFOSubject ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent No results found