Delete GameRewards
setTimeout 45000
open index.php/gameRewards/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Update
verifyTextPresent Export
verifyTextPresent Delete
verifyTextPresent Advanced
verifyTextPresent Columns
type GameRewardsSearchForm_anyMixedAttributes Test Game Reward ${randomSuffix}
keyUp GameRewardsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a Test Game Reward ${randomSuffix}
verifyTextPresent Test Game Reward ${randomSuffix}
verifyValue GameRewardsSearchForm_anyMixedAttributes Test Game Reward ${randomSuffix}
click //div[@id='list-view']/div[2]/table/tbody/tr/td[2]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 3000
waitForTextPresent Test Game Reward ${randomSuffix}
assertElementPresent link=Delete
click link=Delete
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForConfirmation Are you sure you want to delete this game reward?
chooseOkOnNextConfirmation
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
setSpeed 0
open index.php/gameRewards/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click id=clear-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Criteria Selected
verifyTextPresent Create
verifyTextPresent Update
verifyTextPresent Export
verifyTextPresent Delete
verifyTextPresent Advanced
verifyTextPresent Columns
type GameRewardsSearchForm_anyMixedAttributes Test Game Reward ${randomSuffix}
keyUp GameRewardsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent No results found
click id=clear-search-link
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextNotPresent Criteria Selected