Test_SNF_SOC_19_Demo_SendandAcceptOrDenyUser
open /portal/public/intranet/
windowMaximize
echo -- Send and Access invitation
click //div[contains(text(),'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
waitForElementPresent //a[@title='Invite Mary Kelly']
click //a[@title='Invite Mary Kelly']
waitForTextPresent [Invited to connect]
verifyTextPresent [Invited to connect]
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Accept Invitation
open /portal/public/intranet/
click //div[contains(text(),'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']
click //a[@class='SelectIcon']
echo -- Verify Accept successful
waitForElementPresent link=Network
click link=Network
pause 500
waitForElementPresent link=Root Root
verifyElementPresent link=Root Root
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Remove Friend
open /portal/public/intranet/
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Connections
click link=Connections
pause 500
waitForElementPresent link=Mary Kelly
verifyElementPresent link=Mary Kelly
click //a[@class='DeleteIcon']
waitForElementNotPresent link=Mary Kelly
verifyElementNotPresent link=Mary Kelly
waitForElementPresent link=Logout
clickAndWait link=Logout