Test_SNF_PRL_20_ExpandAllCollapseAll
open /portal/classic/
echo -CollapseAll-
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
clickAndWait link=SiteMap
waitForElementPresent css=div.ExpandIcon.ClearFix > a.NodeIcon.DefaultPageIcon
click css=div.ExpandIcon.ClearFix > a.NodeIcon.DefaultPageIcon
waitForElementPresent css=div.ExpandIcon.ClearFix > a.NodeIcon.DefaultPageIcon
click css=div.ExpandIcon.ClearFix > a.NodeIcon.DefaultPageIcon
waitForElementPresent css=div.ExpandIcon.ClearFix > a.NodeIcon.DefaultPageIcon
click css=div.ExpandIcon.ClearFix > a.NodeIcon.DefaultPageIcon
echo --Collapse SiteMap Tree
waitForElementPresent //div[contains(text(),'Collapse All')]
click //div[contains(text(),'Collapse All')]
echo -- verify Application Manager disappear
verifyNotVisible //div[@id='UISiteMap']//a[text()='Application Registry']
echo -- verify Pages Manager disappear
verifyNotVisible //div[@id='UISiteMap']//a[text()='Page Management']
echo -- verify New Staff disappear
verifyNotVisible //div[@id='UISiteMap']//a[text()='New Staff']
echo -- verify Users and groups management  disappear
verifyElementNotPresent //div[@id='UISiteMap']//a[text()='Users and Groups Manager']
echo -- verify Blog disappear
verifyNotVisible //div[@id='UISiteMap']//a[text()='Blog']
echo -- verify Fedora disappear
verifyNotVisible //div[@id='UISiteMap']//a[text()='Fedora']
waitForElementPresent link=Sign out
clickAndWait link=Sign out