Test_SNF_SOC_15_Demo_CheckDisplayingPendingSpaceList
open /portal/public/default/
windowMaximize
echo --  Check displaying on Pending space list
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 Space15
type description This is description for Space_15
click link=Create
pause 12000
echo -- Verify space created
waitForElementPresent link=Space15
verifyElementPresent link=Space15
click link=Space15
waitForTextPresent Space15 was created
verifyTextPresent Space15 was created
pause 2000
waitForElementPresent link=Logout
clickAndWait link=Logout
echo --Request  to join the Space
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=Publics
click link=Publics
pause 500
waitForTextPresent This is description for Space_15
verifyTextPresent This is description for Space_15
waitForElementPresent //a[@class='Icon IconAdd']
click //a[@class='Icon IconAdd']
echo -- - Verify requested space is displayed in Space Pending List
waitForElementPresent link=Pendings
click link=Pendings
waitForTextPresent This is description for Space_15
verifyTextPresent This is description for Space_15
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