Test_SNF_PRL_34_ChangeContainerWhenEditPropertiesOfNodeInPortalNavigation
open /portal/classic
echo -- Edit Node page's properties in portal navigation--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo --Add new node for portal --
clickAndWait link=Site
waitForElementPresent //div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"]
click //div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"]
waitForElementPresent link=Add Node
click link=Add Node
waitForElementPresent name
type name Test_SNF_PRL_34
type label Test_SNF_PRL_34
echo -- Page Selector--
waitForElementPresent //div[text()='Page Selector']
click //div[text()='Page Selector']
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
waitForElementPresent //form[@id='UIPageSearchForm']/div[2]/input Community Management
type //form[@id='UIPageSearchForm']/div[2]/input Community Management
waitForElementPresent name=searchOption
select name=searchOption label=group
waitForElementPresent //a[@title='Quick Search']
click //a[@title='Quick Search']
waitForElementPresent xpath=//img[@title='Select Page']
click xpath=//img[@title='Select Page']
waitForElementPresent link=Save
click link=Save
echo -- Save to finish create new node--
waitForElementPresent link=Save
click link=Save
echo -- View new node--
waitForTextPresent Test_SNF_PRL_34
verifyTextPresent Test_SNF_PRL_34
echo -- Change container when edit page properties of node --
clickAndWait link=Site
waitForElementPresent //div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"]
click //div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"]
waitForElementPresent //a[@title='Test_SNF_PRL_34']
click //a[@title='Test_SNF_PRL_34']
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_34']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_34']
waitForElementPresent link=Edit Node's Page
click link=Edit Node's Page
pause 10000
echo -- View layout of node before Change container--
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForTextPresent User Management
verifyTextPresent User Management
waitForTextPresent Group Management
verifyTextPresent Group Management
waitForTextPresent Membership Management
verifyTextPresent Membership Management
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo -- Change container--
waitForElementPresent //div[@id='UIPortalComposerTab']//div[contains(text(),"Containers")]
click //div[@id='UIPortalComposerTab']//div[contains(text(),"Containers")]
waitForElementPresent //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div
dragAndDropToObject //div[@id='oneRow']/div //div[2]/div/div/div/div/div/div[2]/div/div/div/div/div[1]/div/div/div[1]/div/div/div/div[1]/div
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForElementPresent UIPortalApplication
verifyElementPresent UIPortalApplication
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo --Edit container --
mouseOver //div[@title="Hold this area to drag this container"] Container
waitForElementPresent //a[@title="Edit Container"]
click //a[@title="Edit Container"]
waitForElementPresent title
type title Test_SNF_PRL_34
waitForElementPresent width
type width 300px
waitForElementPresent height
type height 100px
waitForElementPresent link=Save
click link=Save
echo -- Move position of container --
mouseOver //div[@title="Hold this area to drag this container"] Test_SNF_PRL_34
dragAndDropToObject //div[@title="Hold this area to drag this container"] //div[contains(text(),"Community Management")]
echo -- View after change position of container --
waitForElementPresent link=Switch View mode
click link=Switch View mode
waitForElementPresent link=Switch View mode
click link=Switch View mode
echo -- Delete container --
mouseOver //div[@title="Hold this area to drag this container"] Test_SNF_PRL_34
waitForElementPresent //a[@title="Delete Container"]
click //a[@title="Delete Container"]
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this Container?
waitForElementPresent //div[@id='UIPageEditor']//a[@title='Finish']
click //div[@id='UIPageEditor']//a[@title='Finish']
echo -- Close Navigation Management form --
waitForElementPresent link=Save
click link=Save
echo -- View node after change container --
open http://localhost:8080/portal/classic/Test_SNF_PRL_34
echo -- Delete this node--
clickAndWait link=Site
waitForElementPresent //div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"]
click //div[@id='UISiteManagement']//a[contains(@href,"classic") and text()="Edit Navigation"]
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[8]/div/a
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_34']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_34']
waitForElementPresent link=Delete Node
click link=Delete Node
waitForConfirmationPresent
assertConfirmation Are you sure you want to delete this node?
waitForElementNotPresent xpath=//a[@title='Test_SNF_PRL_34']
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out