Test_SNF_SOC_21_Demo_IncommingList
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Directory
clickAndWait link=Directory
echo -- Send invitation to a user
click //a[@title='Invite Mary Kelly']
waitForTextPresent [Invited to connect]
verifyTextPresent [Invited to connect]
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Check Invitation is in the Incomming list of invited user
open /socialdemo/public/classic/
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Connections
clickAndWait link=Connections
waitForElementPresent link=Incoming
click link=Incoming
pause 500
waitForElementPresent link=Root Root
verifyElementPresent link=Root Root
waitForElementPresent //a[@class='SelectIcon']
verifyElementPresent //a[@class='SelectIcon']
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Remove Invitaion
open /socialdemo/public/classic/
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Connections
click link=Connections
waitForElementPresent link=Outgoing
click link=Outgoing
pause 500
waitForElementPresent link=Mary Kelly
verifyElementPresent link=Mary Kelly
waitForElementPresent //div[@id='UIPendingRelation']/div/div/div[3]/div[2]/div/a
click //div[@id='UIPendingRelation']/div/div/div[3]/div[2]/div/a
waitForElementNotPresent link=Mary Kelly
verifyElementNotPresent link=Mary Kelly
waitForElementPresent link=Sign out
clickAndWait link=Sign out