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 //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 Space05
type description This is description for Space_05
waitForElementPresent link=Create
click link=Create
pause 1000
echo -- Verify space created
waitForElementPresent link=Space05
verifyElementPresent 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 //form[@id='UIComposer']/div[2]/div[2]/div/a
click //form[@id='UIComposer']/div[2]/div[2]/div/a
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://www.google.com
echo -- Delete Space created
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 Space05
verifyTextNotPresent Space05
waitForElementPresent link=Sign out
clickAndWait link=Sign out