Test_SOC_SPC_10.004_RemoveSpaceSettingsPortlet
echo --Test_SOC_SPC_10.004_RemoveSpaceSettingsPortlet.html--
open /socialdemo/public/classic/
echo -- open log in form--
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 RemoveSpaceSettingApplication
type description Remove space setting app for space
clickAt link=Create
pause 2000
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 -- access space settings portlet--
clickAndWait //div[@id='UISpaceMenu']/div/div[5]/a/span
echo -- select application tab--
click //div[@id='UITabPane']/div[1]/div/div[4]/div/div/div/div
echo -- Current can not verify the displaying of remove icon of Space setting portlet--
echo --Back to space page--
click 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.
waitForElementPresent link=Sign out
clickAndWait link=Sign out