Test_SNF_SOC_21_Demo_IncommingList
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()='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 -- Check Invitation is in the Incomming list of invited user
waitForElementPresent link=Sign in
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']
verifyElementPresent //a[text()='Root Root']/following::ul//a[@title='Accept']
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Remove Invitaion
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Connections
click link=Connections
waitForElementPresent link=Pending Requests
clickAndWait link=Pending Requests
waitForElementPresent link=Mary Kelly
verifyElementPresent link=Mary Kelly
waitForElementPresent //a[text()='Mary Kelly']/following::ul//a[@title='Cancel']
click //a[text()='Mary Kelly']/following::ul//a[@title='Cancel']
waitForElementNotPresent link=Mary Kelly
verifyElementNotPresent link=Mary Kelly
echo --  Sign out
waitForElementPresent link=Sign out
clickAndWait link=Sign out