Test_SNF_SOC_14_Demo_CheckDisplayingInvitationSpaceList
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Spaces
clickAndWait link=Spaces
echo -- Add a new Space
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent displayName
type displayName Space14
type description This is description for Space_14
waitForElementPresent link=Create
clickAt link=Create 2,2
pause 13000
echo -- Verify space created
waitForElementPresent link=Space14
click link=Space14
waitForTextPresent Space14 was created
verifyTextPresent Space14 was created
echo -- Invite a user to join the Space
waitForElementPresent //a[contains(@href,'space14/settings')]
click //a[contains(@href,'space14/settings')]
waitForElementPresent //div[text()='Members']
click //div[text()='Members']
waitForElementPresent user
type user mary
waitForElementPresent //a[@title='Invite']
click //a[@title='Invite']
waitForTextPresent mary
verifyTextPresent mary
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Accept the Invite
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Spaces
clickAndWait link=Spaces
waitForElementPresent link=Received Invitations
clickAndWait link=Received Invitations
echo -- Verify your Space Invitation is displayed
waitForTextPresent This is description for Space_14
verifyTextPresent This is description for Space_14
waitForElementPresent //div/a[text()='Space14']/following::ul//a[@title='Accept']
verifyElementPresent //div/a[text()='Space14']/following::ul//a[@title='Accept']
waitForElementPresent //div/a[text()='Space14']/following::ul//a[@title='Deny']
verifyElementPresent //div/a[text()='Space14']/following::ul//a[@title='Deny']
echo -- Sign out
waitForElementPresent link=Sign out
clickAndWait link=Sign out