| open |
/portal/public/intranet/ |
|
| echo |
-- Edit Node page's properties in portal navigation-- |
|
| windowMaximize |
|
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Login |
|
| clickAndWait |
link=Sign in |
|
| echo |
--Add new node for portal -- |
|
| waitForElementPresent |
link=Manage sites |
|
| clickAndWait |
link=Manage sites |
|
| echo |
--Edit Navigation: intranet |
|
| waitForElementPresent |
//td/div[text()='intranet']/following::td/a[text()='Edit Navigation'] |
|
| click |
//td/div[text()='intranet']/following::td/a[text()='Edit Navigation'] |
|
| echo |
--Add Node |
|
| 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'] |
|
| echo |
-- Search and Select Page |
|
| waitForElementPresent |
link=Search and Select Page |
|
| click |
link=Search and Select Page |
|
| waitForElementPresent |
searchTerm |
|
| type |
searchTerm |
Community Management |
| waitForElementPresent |
searchOption |
|
| select |
searchOption |
label=Title |
| waitForElementPresent |
//a[@title='Quick Search'] |
|
| click |
//a[@title='Quick Search'] |
|
| echo |
--Select Page |
|
| waitForElementPresent |
//td/div[@title='Community Management']/following::td/div/img[@title='Select Page'] |
|
| click |
//td/div[@title='Community Management']/following::td/div/img[@title='Select Page'] |
|
| echo |
--Save |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Save to finish create new node-- |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
30000 |
|
| echo |
-- View new node-- |
|
| waitForElementPresent |
link=Test_SNF_PRL_34 |
|
| clickAndWait |
link=Test_SNF_PRL_34 |
|
| echo |
-- Change container when edit page properties of node -- |
|
| waitForElementPresent |
link=Manage sites |
|
| clickAndWait |
link=Manage sites |
|
| echo |
--Edit Navigation: intranet |
|
| waitForElementPresent |
//td/div[text()='intranet']/following::td/a[text()='Edit Navigation'] |
|
| click |
//td/div[text()='intranet']/following::td/a[text()='Edit Navigation'] |
|
| echo |
--Choose Node : Test_SNF_PRL_34 |
|
| waitForElementPresent |
//a[@title='Test_SNF_PRL_34'] |
|
| click |
//a[@title='Test_SNF_PRL_34'] |
|
| waitForElementPresent |
//a[@title='Test_SNF_PRL_34'] |
|
| mouseDownRight |
//a[@title='Test_SNF_PRL_34'] |
|
| waitForElementPresent |
link=Edit Node's Page |
|
| click |
link=Edit Node's Page |
|
| pause |
5000 |
|
| 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 |
|
| dragAndDropToObject |
//div[@id='oneRow']/div |
//div[contains(text(),'Community Management')] |
| echo |
--Edit container -- |
|
| mouseOver |
//div[text()='Container' and @class='ContainerIcon']/following::a[@title='Edit Container'] |
|
| click |
//div[text()='Container' and @class='ContainerIcon']/following::a[@title='Edit Container'] |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_PRL_34 |
| waitForElementPresent |
width |
|
| type |
width |
300px |
| waitForElementPresent |
height |
100px |
| type |
height |
100px |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Move position of container -- |
|
| mouseOver |
//div[text()='Test_SNF_PRL_34'] /..//div[@title='Hold this area to drag this container'] |
|
| dragAndDropToObject |
//div[text()='Test_SNF_PRL_34'] /..//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 |
|
| 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 |
-- Delete container -- |
|
| mouseOver |
//div[text()='Test_SNF_PRL_34'] /following::a[@title='Delete Container'] |
|
| waitForElementPresent |
//div[text()='Test_SNF_PRL_34'] /following::a[@title='Delete Container'] |
|
| click |
//div[text()='Test_SNF_PRL_34'] /following::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 |
|
| pause |
30000 |
|
| echo |
-- View node after change container -- |
|
| waitForElementPresent |
link=Test_SNF_PRL_34 |
|
| clickAndWait |
link=Test_SNF_PRL_34 |
|
| echo |
-- Delete this node-- |
|
| waitForElementPresent |
link=Manage sites |
|
| clickAndWait |
link=Manage sites |
|
| echo |
--Edit Navigation: intranet |
|
| waitForElementPresent |
//td/div[text()='intranet']/following::td/a[text()='Edit Navigation'] |
|
| click |
//td/div[text()='intranet']/following::td/a[text()='Edit Navigation'] |
|
| waitForElementPresent |
//a[@title='Test_SNF_PRL_34'] |
|
| click |
//a[@title='Test_SNF_PRL_34'] |
|
| waitForElementPresent |
//a[@title='Test_SNF_PRL_34'] |
|
| mouseDownRight |
//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 |
//a[@title='Test_SNF_PRL_34'] |
|
| verifyElementNotPresent |
//a[@title='Test_SNF_PRL_34'] |
|
| echo |
-- Save |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-- Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|