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 james
type password gtn
clickAndWait id=UIPortalLoginFormAction
waitForElementPresent link=Find People
clickAndWait link=Find People
echo -- Send invitation to a user : Mary
waitForElementPresent //div[contains(text(),'mary.williams@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite']
click //div[contains(text(),'mary.williams@acme.exoplatform.com')]/following-sibling::ul//a[@title='Invite']
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Accept Invitation
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username mary
type password gtn
clickAndWait id=UIPortalLoginFormAction
echo -- Go to My network
waitForElementPresent link=My Network
clickAndWait link=My Network
waitForElementPresent link=Received Invitations
clickAndWait link=Received Invitations
echo -- Accept with request from Jack (demo)
waitForElementPresent //a[text()='James Davis']/following-sibling::ul//a[@title='Accept']
click //a[text()='James Davis']/following-sibling::ul//a[@title='Accept']
echo -- Verify Accept successful
waitForElementPresent link=Network
clickAndWait link=Network
pause 500
waitForElementPresent link=James Davis
verifyElementPresent link=James Davis
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Remove Friend
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username james
type password gtn
clickAndWait id=UIPortalLoginFormAction
waitForElementPresent link=My Network
clickAndWait link=My Network
waitForElementPresent link=Mary Williams
verifyElementPresent link=Mary Williams
click //a[text()='Mary Williams']/following-sibling::ul//a[@title='Delete']
waitForElementNotPresent link=Mary Williams
verifyElementNotPresent link=Mary Williams
waitForElementPresent link=Logout
clickAndWait link=Logout