open |
/portal/public/classic/ |
|
echo |
-- Change container when edit layout for group's page -- |
|
windowMaximize |
|
|
click |
link=Sign in |
|
waitForElementPresent |
username |
root |
type |
username |
root |
type |
password |
gtn |
clickAndWait |
//div[@id='UIPortalLoginFormAction'] |
|
clickAndWait |
link=Application Registry |
|
echo |
-- Click Add new page on Group editor menu-- |
|
waitForElementPresent |
link=Add New Page |
|
click |
link=Add New Page |
|
waitForElementPresent |
//div[@id='UIPageNodeSelector']//a[@title='Up Level'] |
|
click |
//div[@id='UIPageNodeSelector']//a[@title='Up Level'] |
|
waitForElementPresent |
pageName |
|
type |
pageName |
Test_SNF_PRL_42 |
type |
i18nizedLabel |
Test_SNF_PRL_42 |
echo |
-- Click Next to move step 2-- |
|
waitForElementPresent |
//div[contains(text(),'Next')] |
|
click |
//div[contains(text(),'Next')] |
|
echo |
-- Keep empty layout and click Next move step 3-- |
|
waitForElementPresent |
//div[contains(text(),'Next')] |
|
click |
//div[contains(text(),'Next')] |
|
echo |
-- Click Finish -- |
|
waitForElementPresent |
//a[@title='Finish'] |
|
clickAndWait |
//a[@title='Finish'] |
|
assertLocation |
http://localhost:8080/portal/groups/:platform:administrators/administration/Test_SNF_PRL_42 |
|
echo |
-- Click Edit layout -- |
|
waitForElementPresent |
link=Edit Layout |
|
click |
link=Edit Layout |
|
echo |
-- View layout of page before Change container-- |
|
waitForElementPresent |
link=Switch View Mode |
|
click |
link=Switch View Mode |
|
waitForElementPresent |
// div[@id="UIPortalApplication"] |
|
verifyElementPresent |
//div[@id="UIPortalApplication"] |
|
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[text()='Container']/following-sibling::a[@title='Edit Container'] |
|
waitForElementPresent |
//div[text()='Container']/following-sibling::a[@title='Edit Container'] |
|
click |
//div[text()='Container']/following-sibling::a[@title='Edit Container'] |
|
waitForElementPresent |
title |
|
type |
title |
Test_SNF_PRL_42 |
waitForElementPresent |
width |
|
type |
width |
300px |
waitForElementPresent |
height |
|
type |
height |
100px |
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Move position of container -- |
|
mouseOver |
css=div.DragControlArea |
|
dragAndDropToObject |
css=div.DragControlArea |
//div[@class='LAYOUT-PORTAL LAYOUT-BLOCK'] |
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[text()='Test_SNF_PRL_42']/following-sibling::a[@title='Delete Container'] |
|
waitForElementPresent |
//div[text()='Test_SNF_PRL_42']/following-sibling::a[@title='Delete Container'] |
|
click |
//div[text()='Test_SNF_PRL_42']/following-sibling::a[@title='Delete Container'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete this Container? |
|
waitForElementPresent |
//div[@id='UIPortalComposer']//a[@title='Finish'] |
|
click |
//div[@id='UIPortalComposer']//a[@title='Finish'] |
|
echo |
-- Go to Edit Navigation -- |
|
waitForElementPresent |
link=Group |
|
clickAndWait |
link=Group |
|
waitForElementPresent |
link=Edit Navigation |
|
click |
link=Edit Navigation |
|
echo |
-- Delete node -- |
|
waitForElementPresent |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_42'] |
|
mouseDownRight |
//a[@class='NodeIcon DefaultPageIcon' and @title='Test_SNF_PRL_42'] |
|
waitForElementPresent |
link=Delete Node |
|
click |
link=Delete Node |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Are you sure you want to delete this node? |
|
waitForElementPresent |
link=Save |
|
click |
link=Save |
|
echo |
-- Go to Page Management -- |
|
clickAndWait |
link=Page Management |
|
waitForElementPresent |
pageTitle |
|
type |
pageTitle |
Test_SNF_PRL_42 |
select |
name=searchOption |
label=group |
waitForElementPresent |
//a[@title='Quick Search'] |
|
click |
//a[@title='Quick Search'] |
|
echo |
-- Delete page -- |
|
waitForElementPresent |
//img[@title='Delete Page'] |
|
click |
//img[@title='Delete Page'] |
|
waitForConfirmationPresent |
|
|
assertConfirmation |
Do you want to delete this page? |
|
waitForTextPresent |
No result found. |
|
verifyTextPresent |
No result found. |
|
waitForElementPresent |
//div[contains(@onclick,"action=Close")] |
|
click |
//div[contains(@onclick,"action=Close")] |
|
waitForElementPresent |
link=Sign out |
|
clickAndWait |
link=Sign out |
|