Test_SOC_Fun_SPC_07.028_SendRequestToSpaceAtVisibleModeAndCloseForRegistration
echo --Test_SOC_Fun_SPC_07.028_SendRequestToSpaceAtVisibleModeAndCloseForRegistration--
open /socialdemo/public/classic/
echo -- sign in--
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space portlet--
clickAndWait link=Spaces
echo -- add new space---
click link=Add New Space
echo -- add name and description for space--
waitForElementPresent name
type name VisibleAndCloseSpace
type description user can not send request to space
echo -- set register with value is validate and close for space--
click //div[@id='UIPopupAddSpace']/div/div[2]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent //input[@name='UIRegistration' and @value='close']
click //input[@name='UIRegistration' and @value='close']
click link=Create
pause 2000
clickAndWait link=Sign out
echo -- sign in by Mary--
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
click //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space page--
waitForElementPresent link=Spaces
click link=Spaces
echo -- access Public space list
waitForElementPresent link=Publics
click link=Publics
verifyElementNotPresent //div[@id='UIManagePublicSpaces']/div[2]/div[2]/div[2]/div[1]/a
pause 1000
echo -- mary signs out--
click link=Sign out
pause 1000
echo --John sign in to clean data--
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --access space page--
clickAndWait link=Spaces
echo --delete space for clean data--
waitForElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/a[1]
click //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/a[1]
assertConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
click link=Sign out