Parent Group Test
setTimeout 45000
store javascript{Math.floor(Math.random()*11000)} parentrandomSuffix
store javascript{Math.floor(Math.random()*11000)} childrandomSuffix
open index.php/zurmo/group
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='GroupsActionBarAndTreeListView']/div[1]/div[1]/nav[1]/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Group_name TestGroup${parentrandomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText //div[@id='GroupBreadCrumbView']/div/a[3] TestGroup${parentrandomSuffix}
open index.php/zurmo/group
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='GroupsActionBarAndTreeListView']/div[1]/div[1]/nav[1]/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Group_name TestGroup${childrandomSuffix}
click Group_group_SelectLink
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Select a Parent Group
assertText link=TestGroup${parentrandomSuffix} TestGroup${parentrandomSuffix}
click link=TestGroup${parentrandomSuffix}
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForValue Group_group_name TestGroup${parentrandomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent TestGroup${childrandomSuffix}
verifyValue Group_group_name TestGroup${parentrandomSuffix}
clickAndWait //div[@id='MenuView']/ul/li[5]/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertText link=TestGroup${childrandomSuffix} TestGroup${childrandomSuffix}
clickAndWait link=TestGroup${childrandomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
assertTextPresent TestGroup${childrandomSuffix}
verifyValue Group_group_name TestGroup${parentrandomSuffix}