Test_SNF_DOC_30_Demo_ViewConnectionListOtherUser
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username demo
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
echo --Invite User--
waitForElementPresent link=Directory
clickAndWait link=Directory
waitForElementPresent //div[contains(text(),'john@localhost')]/following-sibling::ul//a[@title='Invite']
click //div[contains(text(),'john@localhost')]/following-sibling::ul//a[@title='Invite']
echo --Accept invitation--
waitForElementPresent link=Sign out
clickAndWait link=Sign out
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Directory
clickAndWait link=Directory
waitForElementPresent //div[contains(text(),'demo@localhost')]/following-sibling::ul//a[@title='Accept']
click //div[contains(text(),'demo@localhost')]/following-sibling::ul//a[@title='Accept']
echo -- View other user Connections list--
waitForElementPresent link=Sign out
clickAndWait link=Sign out
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Directory
clickAndWait link=Directory
waitForElementPresent link=Demo gtn
clickAndWait link=Demo gtn
echo -- Connections
waitForElementPresent //a[contains(@href, '/socialdemo/classic/connections/network/demo')]
clickAndWait //a[contains(@href, '/socialdemo/classic/connections/network/demo')]
waitForTextPresent John Anthony
verifyTextPresent John Anthony
echo --Remove Connection--
waitForElementPresent link=Sign out
clickAndWait link=Sign out
click link=Sign in
waitForElementPresent username
type username demo
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Connections
click link=Connections
waitForElementPresent //div[contains(text(),'john@localhost')]/following-sibling::ul//a[@title='Delete']
click //div[contains(text(),'john@localhost')]/following-sibling::ul//a[@title='Delete']
waitForElementPresent //div[contains(text(),'john@localhost')]/following-sibling::ul//a[@title='Invite']
verifyElementPresent //div[contains(text(),'john@localhost')]/following-sibling::ul//a[@title='Invite']
echo --  Sign out
waitForElementPresent link=Sign out
clickAndWait link=Sign out