Test_SNF_SOC_04_Demo_AccessCreatedSpace
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Spaces
clickAndWait link=Spaces
echo -- Add a new Space
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent name
type name Space04
type description This is description for Space_04
waitForElementPresent link=Create
click link=Create
pause 1000
echo -- Verify space created
waitForElementPresent link=Space04
verifyElementPresent link=Space04
click link=Space04
waitForTextPresent Space04 was created
verifyTextPresent Space04 was created
echo -- Acesss Space created
waitForElementPresent link=Home
verifyElementPresent link=Home
waitForElementPresent //div[@id='UISpaceMenu']/div/div[3]/a/span
verifyElementPresent //div[@id='UISpaceMenu']/div/div[3]/a/span
waitForElementPresent link=Members
verifyElementPresent link=Members
waitForElementPresent link=Space Settings
verifyElementPresent link=Space Settings
click link=Space Settings
echo -- Delete Space created
waitForElementPresent link=Spaces
click link=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.
echo -- Verify space deleted
waitForTextNotPresent Space04
verifyTextNotPresent Space04
waitForElementPresent link=Sign out
clickAndWait link=Sign out