Check Inbox
setTimeout 45000
open index.php/mashableInbox/default/list
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyElementPresent id=MashableInboxForm_searchTerm
type id=MashableInboxForm_searchTerm Test Subject ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/div/span[1]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Subject ${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]
waitForPageToLoad
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 Subject ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test Subject ${randomSuffix}
setSpeed 3000
click //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyElementPresent //div[@id='ConversationDetailsView']/div/div[3]/div/div/div/div[2]/label
click //div[@id='ConversationDetailsView']/div/div[3]/div/div/div/div[2]/label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0
open index.php/mashableInbox/default/list?modelClassName=Conversation
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Subject
click //div[@id='MashableInboxForm_optionForModel_area']/label[3]
verifyElementPresent id=MashableInboxForm_searchTerm
type id=MashableInboxForm_searchTerm Test Subject ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent Test Subject ${randomSuffix}
click id=list-view-rowSelector_0
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000