Test_SNF_SOC_05_Demo_AddActivityforSpace
open /socialdemo/public/classic/
windowMaximize
echo -- Add Space Activites
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
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 Space05
type description This is description for Space_05
waitForElementPresent link=Create
clickAt link=Create 2,2
pause 2000
echo -- Verify space created
waitForElementPresent link=Space05
click link=Space05
waitForTextPresent Space05 was created
verifyTextPresent Space05 was created
echo -- Add Activites and share link
pause 1000
waitForElementPresent composerInput
type composerInput This is activity for Space 05
waitForElementPresent //a[@title='Share Link']
click //a[@title='Share Link']
waitForElementPresent InputLink
type InputLink http://google.com
waitForElementPresent AttachButton
click AttachButton
pause 1000
waitForElementPresent ShareButton
click ShareButton
pause 1000
waitForElementPresent link=Google
verifyTextPresent This is activity for Space 05
verifyElementPresent link=Google
verifyTextPresent Source : http://google.com
echo -- Delete Space created
click link=Spaces
waitForElementPresent //div//a[text()='Space05']/ancestor::div/ul//a[@title='Delete']
click //div//a[text()='Space05']/ancestor::div/ul//a[@title='Delete']
waitForConfirmation Cannot undo one deleted space with all its page navigations and group. Are you sure to delete this space?
echo -- Verify space deleted
waitForTextNotPresent Space05
verifyTextNotPresent Space05
echo -- Sign out
waitForElementPresent link=Sign out
clickAndWait link=Sign out