| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Edit Space Navigation |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
displayName |
|
| type |
displayName |
Space13 |
| type |
description |
This is description for Space_13 |
| waitForElementPresent |
link=Create |
|
| click |
link=Create |
|
| pause |
30000 |
|
| echo |
--access the new Space |
|
| waitForElementPresent |
link=Space13 |
|
| clickAndWait |
link=Space13 |
|
| echo |
-- access Space setting--- |
|
| waitForElementPresent |
//a[contains(@href,'spaces:space13') and @title='Settings'] |
|
| clickAndWait |
//a[contains(@href,'spaces:space13') and @title='Settings'] |
|
| echo |
-- select Edit navigation tab |
|
| waitForElementPresent |
//div[text()='Space Navigation'] |
|
| click |
//div[text()='Space Navigation'] |
|
| echo |
--Edit nav: add node, actions ... |
|
| echo |
BUG: SOC-1300 |
|
| waitForElementPresent |
link=Add Node |
|
| click |
link=Add Node |
1,1 |
| pause |
1000 |
|
| waitForElementPresent |
//div[1]/div/table/tbody/tr[2]/td[2]/input |
|
| type |
//div[1]/div/table/tbody/tr[2]/td[2]/input |
test_node_label_13 |
| waitForElementPresent |
//tr[3]/td[2]/input |
|
| type |
//tr[3]/td[2]/input |
test_node_label_13 |
| echo |
--Select Page |
|
| waitForElementPresent |
//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
| click |
//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div |
|
| waitForElementPresent |
link=Search and Select Page |
|
| click |
link=Search and Select Page |
|
| echo |
--Select the first page |
|
| waitForElementPresent |
//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img |
|
| click |
//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img |
|
| pause |
1000 |
|
| echo |
--Save |
|
| waitForElementPresent |
//div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| click |
//div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
1,1 |
| pause |
1000 |
|
| waitForElementPresent |
//td[2]/div/div/div/div/a |
|
| click |
//td[2]/div/div/div/div/a |
1,1 |
| echo |
--Verify new node created |
|
| waitForElementPresent |
link=test_node_label_13 |
|
| verifyElementPresent |
link=test_node_label_13 |
|
| waitForElementPresent |
//div[@id='UISpaceNavigationNodeSelector']//a[@title='test_node_label_13'] |
|
| click |
//div[@id='UISpaceNavigationNodeSelector']//a[@title='test_node_label_13'] |
|
| pause |
1000 |
|
| echo |
--Delete node |
|
| waitForElementPresent |
//a[@title='test_node_label_13'] |
|
| mouseDownRight |
//a[@title='test_node_label_13'] |
|
| waitForElementPresent |
link=Delete Node |
|
| click |
link=Delete Node |
|
| waitForConfirmation |
Are you sure you want to delete this node? |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
--Verify Deletion |
|
| waitForTextNotPresent |
test_node_label_13 |
|
| verifyTextNotPresent |
test_node_label_13 |
|
| echo |
-- Delete Navigation |
|
| open |
/portal/private/intranet/groupnavigation |
|
| pause |
1000 |
|
| waitForTextPresent |
Space13 |
|
| verifyTextPresent |
Space13 |
|
| waitForElementPresent |
//div[@id='UIGroupNavigationGrid']/table[5]//a[@class='DeleteIcon'] |
|
| click |
//div[@id='UIGroupNavigationGrid']/table[5]//a[@class='DeleteIcon'] |
|
| waitForConfirmation |
Are you sure to delete this navigation? |
|
| pause |
1000 |
|
| echo |
-- Delete Space created |
|
| waitForElementPresent |
link=My Spaces |
|
| click |
link=My Spaces |
|
| waitForElementPresent |
//a[@title='Delete Space'] |
|
| click |
//a[@title='Delete Space'] |
|
| waitForConfirmation |
Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too. |
|
| pause |
500 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|