Test_POR_25_05_005_CutPasteNodeInToTheSameThisSource
open /portal/public/classic/
echo --Login portal--
windowMaximize
click link=Sign in
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --Open Navigation Management pop-up --
waitForElementPresent link=Group
click link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
echo --Cut node--
waitForElementPresent //a[@title='New Staff']
mouseDownRight xpath=//div[@id='UINavigationNodeSelector']//a[@class='NodeIcon DefaultPageIcon' and @title='New Staff']
waitForElementPresent link=Cut Node
click link=Cut Node
echo -- Paste node to same resource--
mouseDownRight //div[@class='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[2]/div/div/a
waitForElementPresent xpath=//div[@id="UINavigationNodeSelector"]/div/div/div/div/div/div[2]/div/div/div[7]/a
click xpath=//div[@id="UINavigationNodeSelector"]/div/div/div/div/div/div[2]/div/div/div[7]/a
echo --Verify text Message--
verifyTextPresent The source and the destination must be different.
waitForElementPresent //div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a
click //div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//div[@class='MiddleLeftSideDecorator']//div[@class='UIPopupMessages']/div[@class='MessageActionBar']//a
waitForElementPresent link=Save
click link=Save
echo -- Sign out--
waitForElementPresent link=Sign out
clickAndWait link=Sign out