Approve and Delete Mission
setTimeout 45000
click id=notifications-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent A mission status has changed
click css=span.icon
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click css=span.icon
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
open index.php/missions/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait css=a.icon-missions-taken-but-not-accepted
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait link=Created
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='MissionsListView']/div/table/tbody/tr/td[2]/div/a/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='MissionsListView']/div/table/tbody/tr/td[2]/div/span Accepted
clickAndWait xpath=//div[@id='list-view']/table/tbody/tr/td/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='ModelDetailsSummaryView']/div/div/div/span Accepted
assertTextPresent New mission ${randomSuffix}
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.