Approve and Delete Mission
setTimeout 45000
open index.php/mashableInbox/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent A mission status has changed
clickAndWait link=Click Here
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent New mission ${randomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/mashableInbox/default/list?modelClassName=Mission
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='MashableInboxForm_optionForModel_area']/label[1]
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='MissionsListView']/div/table/tbody/tr/td/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.z-label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Accepted
assertTextPresent Accepted
assertTextPresent New mission ${randomSuffix}
assertTextPresent Accepted
assertTextPresent Jill Smith
assertTextPresent I picked it... soon ill have it.
assertTextPresent Start this one really quick or the candy goes away...
clickAndWait link=Edit
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type id=Mission_description New mission ${randomSuffix} - Great Job
click css=button.ui-datepicker-trigger
type id=Mission_dueDateTime
clickAndWait name=save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent New mission ${randomSuffix} - Great Job
click xpath=//div[@class='comment-content']/span[2]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click xpath=//div[@class='comment-content']/span[2]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextNotPresent I picked it... soon ill have it.
assertTextNotPresent Start this one really quick or the candy goes away...
clickAndWait link=Delete
waitForConfirmation Are you sure you want to delete this mission?
chooseOkOnNextConfirmation
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='RecentlyViewedView']/ul/li/a/span[2]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='ModelNotFoundView']/h2 The record you are trying to access does not exist.