Search and take Mission
setTimeout 45000
open index.php/mashableInbox/default/list?modelClassName=Mission
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='MashableInboxForm_optionForModel_area']/label[2]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='MissionsListView']/div/table/tbody/tr/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.z-label
waitForTextPresent In Progress Complete
assertTextPresent Start this one really quick or the candy goes away...
type id=Comment_description I picked it... soon ill have it.
click //div[3]/div/a/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent I picked it... soon ill have it.
assertTextPresent Delete
open index.php/mashableInbox/default/list?modelClassName=Mission
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='MashableInboxForm_optionForModel_area']/label[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=MashableInboxForm_searchTerm New mission
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent New mission ${randomSuffix}
clickAndWait //div[@id='list-view']/table/tbody/tr/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.z-label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Awaiting Acceptance
assertTextNotPresent css=span.z-label Complete