Test_SOC_SPC_08.003_SocDemo_RemoveUserRootFromTheSpace
echo -- Test_SOC_SPC_08.003_SocDemo_RemoveUserRootFromTheSpace.html
open /socialdemo/public/classic/
echo -- John sign in to create space--
click //span[2]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access Space page--
clickAndWait link=Spaces
echo --Add new space---
click link=Add New Space
waitForElementPresent name
type name InvireAndRemoveRoot
type description this is space
click link=Create
echo --access 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 -- Select Space setting portlet--
waitForElementPresent //div[@id='UISpaceMenu']/div/div[5]/a/span
click //div[@id='UISpaceMenu']/div/div[5]/a/span
echo -- select member tab--
waitForElementPresent //div[@id='UITabPane']/div[1]/div/div[3]/div/div/div/div
click //div[@id='UITabPane']/div[1]/div/div[3]/div/div/div/div
echo -- Select User--
waitForElementPresent user
type user root
echo -- Click Add--
waitForElementPresent //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[1]/div[2]/div
click //form[@id='UISpaceMember']/div[2]/div/div/div/div/div[1]/div[2]/div
echo -- access member space to verify---
clickAndWait //div[@id='UISpaceMenu']/div/div[4]/a
echo --verify: Root member--
verifyText link=Root Root Root Root
clickAndWait link=Sign out
echo -- Root sign in to verify member right--
click //span[2]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --access Space page --
clickAndWait link=Spaces
echo --verify: leave icon--
verifyElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div[1]/div[1]/a[2]
clickAndWait link=Sign out
echo -- John sign in to remove Root--
click //span[2]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- access Space page--
clickAndWait link=Spaces
echo -- access created 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 --acces space setting portlet--
clickAndWait //div[@id='UISpaceMenu']/div/div[5]/a/span
echo -- select Member tab--
click //div[@id='UITabPane']/div[1]/div/div[3]/div/div/div/div
echo -- remove Root
waitForElementPresent //form[@id='UISpaceMember']/div[3]/table/tbody/tr[2]/td[3]/a
click //form[@id='UISpaceMember']/div[3]/table/tbody/tr[2]/td[3]/a
clickAndWait link=Sign out
echo -- Root sign in to check when is not member--
click //span[2]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
echo ---access space--
clickAndWait link=Spaces
echo --verify: don't display leave icon--
verifyNotVisible css=a[class='Icon IconLeaveSpace']
clickAndWait link=Sign out
echo -- John sign to delete space--
click //span[2]
waitForElementPresent username
type username john
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo --access space page--
echo -- access space --
clickAndWait link=Spaces
echo -- delete Space to clean data--
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.
clickAndWait link=Sign out