Test_SNF_SOC_19_Demo_SendandAcceptOrDenyUser
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Directory
clickAndWait link=Directory
echo -- Send invitation to a user
waitForElementPresent //a[text()='John Anthony']/following::ul//a[@title='Invite']
click //a[text()='John Anthony']/following::ul//a[@title='Invite']
waitForElementPresent //a[text()='Mary Kelly']/following::ul//a[@title='Invite']
click //a[text()='Mary Kelly']/following::ul//a[@title='Invite']
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Accept Invitation
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Connections
clickAndWait link=Connections
waitForElementPresent link=Received Invitations
clickAndWait link=Received Invitations
waitForElementPresent link=Root Root
verifyElementPresent link=Root Root
waitForElementPresent //a[text()='Root Root']/following::ul//a[@title='Accept']
click //a[text()='Root Root']/following::ul//a[@title='Accept']
echo -- Verify Accept successful
waitForElementPresent link=Network
clickAndWait link=Network
waitForElementPresent link=Root Root
verifyElementPresent link=Root Root
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo --Deny invitation--
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Connections
clickAndWait link=Connections
waitForElementPresent link=Received Invitations
clickAndWait link=Received Invitations
waitForElementPresent link=Root Root
verifyElementPresent link=Root Root
waitForElementPresent //a[text()='Root Root']/following::ul//a[@title='Deny']
click //a[text()='Root Root']/following::ul//a[@title='Deny']
echo -- Check Network list--
waitForElementPresent link=Network
clickAndWait link=Network
waitForElementNotPresent link=Root Root
verifyElementNotPresent link=Root Root
echo -- Remove Friend
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Connections
clickAndWait link=Connections
waitForElementPresent link=Network
clickAndWait link=Network
waitForElementPresent link=Mary Kelly
verifyElementPresent link=Mary Kelly
waitForElementPresent //a[text()='Mary Kelly']/following::ul//a[@title='Delete']
click //a[text()='Mary Kelly']/following::ul//a[@title='Delete']
waitForElementNotPresent link=Mary Kelly
verifyElementNotPresent link=Mary Kelly
echo --  Sign out
waitForElementPresent link=Sign out
clickAndWait link=Sign out