Test_SNF_SOC_21_Demo_IncommingList
open /portal/public/intranet/
windowMaximize
echo -- Incomming list
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
click //a[@title='Invite Mary Kelly']
waitForTextPresent [Invited to connect]
verifyTextPresent [Invited to connect]
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Check Invitation is in the Incomming list of invited user
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']
verifyElementPresent //a[@class='SelectIcon']
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Remove Invitaion
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
waitForElementPresent link=Outgoing
click link=Outgoing
pause 500
waitForElementPresent link=Mary Kelly
verifyElementPresent link=Mary Kelly
click //div[@id='UIPendingRelation']/div/div/div[3]/div[2]/div/a
waitForElementPresent link=Logout
clickAndWait link=Logout