| open |
/socialdemo/public/classic/ |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| waitForElementPresent |
link=Spaces |
|
| clickAndWait |
link=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 |
|
| clickAt |
link=Create |
2,2 |
| pause |
1000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space13 |
|
| click |
link=Space13 |
|
| waitForTextPresent |
Space13 was created |
|
| verifyTextPresent |
Space13 was created |
|
| echo |
-- access Space setting--- |
|
| waitForElementPresent |
//a[contains(@href,'space13/settings')] |
|
| clickAndWait |
//a[contains(@href,'space13/settings')] |
|
| echo |
-- select Edit navigation tab |
|
| waitForElementPresent |
//div [text()='Space Navigation'] |
|
| click |
//div [text()='Space Navigation'] |
|
| echo |
--Edit nav: add node, actions ... |
|
| mouseDownRight |
//a[contains(@onmousedown,'SpaceNavigationNodePopupMenu')] |
|
| echo |
-- Select Add new node |
|
| waitForElementPresent |
//div[@id='SpaceNavigationNodePopupMenu']//a[contains(text(),'Add new Node')] |
|
| click |
//div[@id='SpaceNavigationNodePopupMenu']//a[contains(text(),'Add new Node')] |
|
| pause |
1000 |
|
| waitForElementPresent |
//input[@id='name'] |
|
| type |
//input[@id='name'] |
test_node_label_13 |
| waitForElementPresent |
//input[@id='label'] |
|
| type |
//input[@id='label'] |
test_node_label_13 |
| echo |
--Select Page |
|
| waitForElementPresent |
//div[@id='AddNode']//div[text()='Page Selector'] |
|
| click |
//div[@id='AddNode']//div[text()='Page Selector'] |
|
| waitForElementPresent |
link=Search and Select Page |
|
| click |
link=Search and Select Page |
|
| echo |
--Select the first page |
|
| waitForElementPresent |
//td/div[@title='Home Page']/following::td//img[@title='Select Page'] |
|
| click |
//td/div[@title='Home Page']/following::td//img[@title='Select Page'] |
|
| pause |
1000 |
|
| waitForTextPresent |
portal::classic::homepage |
|
| verifyTextPresent |
portal::classic::homepage |
|
| echo |
--Save |
|
| waitForElementPresent |
//form[@id='UIPageNodeForm']//a[text()='Save'] |
|
| click |
//form[@id='UIPageNodeForm']//a[text()='Save'] |
|
| 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 |
//div[@id='UISpaceNavigationNodeSelector']//a[@title="test_node_label_13"] |
|
| waitForElementPresent |
link=Delete Node |
|
| click |
link=Delete Node |
|
| waitForConfirmation |
Are you sure to delete this node? |
|
| echo |
--Verify Deletion |
|
| waitForTextNotPresent |
test_node_label_13 |
|
| verifyTextNotPresent |
test_node_label_13 |
|
| echo |
-- Delete Navigation |
|
| open |
/socialdemo/private/classic/groupnavigation |
|
| pause |
1000 |
|
| waitForTextPresent |
Space13 |
|
| verifyTextPresent |
Space13 |
|
| waitForElementPresent |
//div[@id='UIGroupNavigationGrid']/table[1]/tbody/tr/td[3]/a[3] |
|
| click |
//div[@id='UIGroupNavigationGrid']/table[1]/tbody/tr/td[3]/a[3] |
|
| waitForConfirmation |
Are you sure to delete this navigation? |
|
| pause |
1000 |
|
| echo |
-- Delete Space created |
|
| waitForElementPresent |
link=Spaces |
|
| clickAndWait |
link=Spaces |
|
| waitForElementPresent |
//div//a[text()='Space13']/ancestor::div/ul//a[@title='Delete'] |
|
| click |
//div//a[text()='Space13']/ancestor::div/ul//a[@title='Delete'] |
|
| waitForConfirmation |
Cannot undo one deleted space with all its page navigations and group. Are you sure to delete this space? |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|