Test_SNF_SOC_14_Demo_CheckDisplayingInvitationSpaceList
open /portal/public/default/
windowMaximize
echo --  Display your Space Invitation
clickAndWait link=exact:Acme: Social Intranet
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
pause 2000
waitForElementPresent link=My Spaces
click link=My Spaces
echo -- Add a new Space
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent name
type name Space14
type description This is description for Space_14
click link=Create
pause 10000
echo -- Verify space created
waitForElementPresent link=Space14
verifyElementPresent link=Space14
click link=Space14
waitForTextPresent Space14 was created
verifyTextPresent Space14 was created
echo -- Invite a user to join the Space
waitForElementPresent link=Space Settings
click link=Space Settings
waitForElementPresent //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
click //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']
waitForElementPresent user
type user mary
click //div[@class='SearchAddMemberIcon']
waitForTextPresent mary
verifyTextPresent mary
pause 2000
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Accept the Invite
open /portal/public/default/
clickAndWait link=exact:Acme: Social Intranet
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
pause 2000
waitForElementPresent link=My Spaces
click link=My Spaces
waitForElementPresent link=Invitations
click link=Invitations
pause 500
echo -- Verify your Space Invitation is displayed
waitForTextPresent This is description for Space_14
verifyTextPresent This is description for Space_14
waitForElementPresent //a[@class='Icon IconAccept']
verifyElementPresent //a[@class='Icon IconAccept']
waitForElementPresent //a[@class='Icon IconDeny']
verifyElementPresent //a[@class='Icon IconDeny']
pause 2000
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Delete Space created
open /portal/public/default/
clickAndWait link=exact:Acme: Social Intranet
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
pause 2000
waitForElementPresent link=My Spaces
click link=My Spaces
waitForElementPresent //a[@title='Delete Space']
click //a[@title='Delete Space']
waitForConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
waitForElementPresent link=Logout
clickAndWait link=Logout
close