SOC_Fun_SPC_01
echo --SOC_Fun_SPC_01.018_Create new space with visible and open mode without user is member---
open /socialdemo/public/classic/
echo -- sign in space --
click link=Sign in
waitForElementPresent username
type username john
type password gtn
click //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access space portlet and add new space--
clickAndWait link=Spaces
click link=Add New Space
echo -- add name and description for space--
waitForElementPresent name
type name OpenSpace
type description this is open space
echo -- set visible and Open mode for space--
waitForElementPresent //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
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
click UIRegistration
click link=Create
pause 2000
echo -- access new space--
waitForElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
clickAndWait //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/div[1]/a
echo --access space setting portlet--
waitForElementPresent //div[@id='UISpaceMenu']/div/div[5]/a/span
clickAndWait //div[@id='UISpaceMenu']/div/div[5]/a/span
echo --access the visible tab of setting portlet--
waitForElementPresent //div[@id='UITabPane']/div[1]/div/div[2]/div/div/div/div
click //div[@id='UITabPane']/div[1]/div/div[2]/div/div/div/div
echo -- verify visible and open mode of Space---
verifyValue Registration on
clickAndWait link=Spaces
echo -- delete space to 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.
echo -- log out --
clickAndWait link=Sign out