Search and take Mission
setTimeout 45000
open index.php/missions/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait css=a.icon-missions-available
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait xpath=//div[@id='list-view']/table/tbody/tr/td/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/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
assertTextPresent New mission ${randomSuffix}
assertTextPresent Complete
click //div[@id='list-view']/table/tbody/tr/td[2]/div/a/span[3]
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Awaiting Acceptance
assertTextNotPresent css=span.z-label Complete