Test_SNF_DOC_30_Demo_ViewConnectionListOtherUser
open /portal/public/intranet/
windowMaximize
echo -- Edit Space Navigation
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait id=UIPortalLoginFormAction
echo --Invite User--
waitForElementPresent link=Find People
clickAndWait link=Find People
echo --Invite Jack
waitForElementPresent //div[contains(text(),'james.davis@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite']
click //div[contains(text(),'james.davis@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite']
echo --Invite John
waitForElementPresent //div[contains(text(),'john.smith@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite']
click //div[contains(text(),'john.smith@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite']
echo --Accept invitation--
waitForElementPresent link=Logout
clickAndWait link=Logout
waitForElementPresent //b[contains(text(),'Sign in')]
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username john
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Find People
clickAndWait link=Find People
waitForElementPresent //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Accept']
click //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Accept']
waitForElementPresent //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Delete']
verifyElementPresent //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Delete']
echo -- View other user Connections list--
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Deny
waitForElementPresent //b[contains(text(),'Sign in')]
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username james
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Find People
clickAndWait link=Find People
waitForElementPresent //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Deny']
click //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Deny']
waitForElementPresent //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Invite']
verifyElementPresent //div[contains(text(),'root@localhost')]/following-sibling::ul//a[@title='Invite']
echo --  Sign out
waitForElementPresent link=Logout
clickAndWait link=Logout