Test_SNF_SOC_02_Demo_CreateEditDeleteSpace
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 displayName
type displayName Space02
type description This is description for Space_02
waitForElementPresent link=Create
click link=Create
pause 1000
echo -- Verify space created
waitForElementPresent link=Space02
verifyElementPresent link=Space02
click link=Space02
waitForTextPresent Space02 was created
verifyTextPresent Space02 was created
echo -- Edit Space created
verifyElementPresent link=Space Settings
click link=Space Settings
waitForElementPresent displayName Space02
type description This is description for Space_02_Edit
waitForElementPresent link=Save
click link=Save
echo -- Check space after edited--
waitForElementPresent link=Spaces
clickAndWait link=Spaces
waitForTextPresent This is description for Space_02_Edit
verifyTextPresent This is description for Space_02_Edit
echo -- access space
waitForElementPresent link=Space02
click link=Space02
echo -- Change application name
waitForElementPresent //div[@id='UISpaceMenu']/div/div[3]/a/span
clickAndWait //div[@id='UISpaceMenu']/div/div[3]/a/span
pause 2000
waitForElementPresent //div[@id='UISpaceMenu']/div/div[4]/a
click //div[@id='UISpaceMenu']/div/div[4]/a
echo -- Delete Space created
waitForElementPresent link=Spaces
clickAndWait 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 Space02
verifyTextNotPresent Space02
waitForElementPresent link=Sign out
clickAndWait link=Sign out