Test_POR_26_03_009_CheckFinishFunctionAfterChangeNodePageContainerLayout
open /portal/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username root
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//a[text()='Sign in']
waitForElementPresent link=New Staff
clickAndWait link=New Staff
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent pageName
type pageName Test_POR_26_03_009
type pageDisplayName Test_POR_26_03_009
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent //div[@id='UIDropDownPageTemp']/div[1]/div/div/div/div/div/div
click //div[@id='UIDropDownPageTemp']/div[1]/div/div/div/div/div/div
waitForElementPresent link=Row Page Configs
click link=Row Page Configs
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForElementPresent //div[@id='Gadgets/Calculator']/div/div/img
dragAndDropToObject //div[@id='Gadgets/Calculator']/div/div/img //div[2]/div/div/div[1]/div/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div[1]/div
dragAndDropToObject //div[@id='Gadgets/Calendar']/div/div/img //div[2]/div/div/div/div/div/div/div[2]/div/div/div/div[1]/div
waitForElementPresent //a[@onclick='eXo.core.DOMUtil.disableOnClick(this);']
clickAndWait //a[@onclick='eXo.core.DOMUtil.disableOnClick(this);']
waitForElementPresent link=Group
clickAndWait link=Group
waitForElementPresent link=Edit Navigation
click link=Edit Navigation
waitForElementPresent //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[2]/div[1]/div/a
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[2]/div[1]/div/a
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon' and @title='Test_POR_26_03_009']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='Test_POR_26_03_009']
click link=Edit Node's Page
waitForElementPresent //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
click //div[@id='UIPortalComposerTab']/div[1]/div/div[2]/div/div/div/div
dragAndDropToObject //div[@id='oneRow']/div //div[@id='oneRow']/div
waitForElementPresent //div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIApplicationList', '/portal/private/classic/groupnavigation?portal:componentId=UIPortalComposerTab&portal:action=SelectTab');ajaxAsyncGetRequest('/portal/private/classic/groupnavigation?portal:componentId=UIPortalComposerTab&portal:action=SelectTab&objectId=UIApplicationList', true);if(eXo.portal.portalMode) eXo.portal.portalMode -= 2;"]
click //div[@onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, 'UIApplicationList', '/portal/private/classic/groupnavigation?portal:componentId=UIPortalComposerTab&portal:action=SelectTab');ajaxAsyncGetRequest('/portal/private/classic/groupnavigation?portal:componentId=UIPortalComposerTab&portal:action=SelectTab&objectId=UIApplicationList', true);if(eXo.portal.portalMode) eXo.portal.portalMode -= 2;"]
waitForElementPresent link=Administration
click link=Administration
waitForElementPresent //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
click //div[@id='UIPageEditor']/div[1]/div/div/div/a[2]
waitForElementPresent link=Save
click link=Save
echo -- View page after change layout--
waitForElementPresent link=Test_POR_26_03_009
click link=Test_POR_26_03_009
echo -- Delete this node--
clickAndWait link=Group
click link=Edit Navigation
click //div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div[2]/div[2]/div[1]/div/a
waitForElementPresent //a[@class='NodeIcon DefaultPageIcon' and @title='Test_POR_26_03_009']
mouseDownRight //a[@class='NodeIcon DefaultPageIcon' and @title='Test_POR_26_03_009']
waitForElementPresent link=Delete Node
click link=Delete Node
assertConfirmation Are you sure you want to delete this node?
waitForElementPresent //div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[2]/div/div/div/div
click //div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[2]/div/div/div/div
waitForElementPresent link=Sign out
clickAndWait link=Sign out