Test_SNF_PRL_47_EditNodePagePropertiesForGroup.html
open /portal/public/classic
echo -- Edit Node page's properties in group navigation--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
echo --Add new node for group --
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent link=Add Node
click link=Add Node
waitForElementPresent name
type name Test_SNF_PRL_47
type label Test_SNF_PRL_47
echo -- Page Selector--
waitForElementPresent //div[text()='Page Selector']
click //div[text()='Page Selector']
echo -- Select a page for ndoe--
waitForElementPresent link=Search and Select Page
click link=Search and Select Page
type //input[@id='pageTitle' and @value='Register'] Register
select name=searchOption label=portal
waitForElementPresent //a[@title='Quick Search']
click //a[@title='Quick Search']
waitForElementPresent //img[@title='Select Page']
click //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--
waitForElementPresent link=Test_SNF_PRL_47
clickAndWait link=Test_SNF_PRL_47
waitForTextPresent Test_SNF_PRL_47
verifyTextPresent Test_SNF_PRL_47
echo --Edit node's page by check show max windown--
waitForElementPresent link=Group
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_47']
click xpath=//a[@title='Test_SNF_PRL_47']
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_47']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_47']
pause 1000
waitForElementPresent link=Edit Node's Page
click link=Edit Node's Page
echo -- View page properties--
pause 1000
waitForElementPresent link=View Page properties
click link=View Page properties
waitForElementPresent xpath=//input[@class='checkbox']
check xpath=//input[@class='checkbox']
waitForElementPresent link=Save
click link=Save
echo -- Click Finish edit node's page--
waitForElementPresent xpath=//a[@class='EdittedSaveButton']
click xpath=//a[@class='EdittedSaveButton']
waitForElementPresent link=Save
click link=Save
clickAndWait link=Test_SNF_PRL_47
assertLocation http://localhost:8080/portal/groups/:platform:administrators/Test_SNF_PRL_47
echo --Edit node's page by un-check show max windown--
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_47']
click xpath=//a[@title='Test_SNF_PRL_47']
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_47']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_47']
pause 1000
waitForElementPresent link=Edit Node's Page
click link=Edit Node's Page
echo -- View page properties--
waitForElementPresent link=View Page properties
click link=View Page properties
waitForElementPresent showMaxWindow
click showMaxWindow
waitForElementPresent link=Save
click link=Save
echo -- Click Finish edit node's page--
waitForElementPresent xpath=//a[@class='EdittedSaveButton']
click xpath=//a[@class='EdittedSaveButton']
waitForElementPresent link=Save
click link=Save
clickAndWait link=Test_SNF_PRL_47
assertLocation http://localhost:8080/portal/groups/:platform:administrators/Test_SNF_PRL_47
echo -- Delete this node--
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[3]/div/a
pause 1000
waitForElementPresent xpath=//a[@title='Test_SNF_PRL_47']
mouseDownRight xpath=//a[@title='Test_SNF_PRL_47']
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_47']
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out