Test_SNF_SOC_05_Demo_AddActivityforSpace
open /portal/public/intranet/
windowMaximize
echo -- Add Space Activites
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=My Spaces
clickAndWait link=My 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
click link=Create
pause 2000
echo -- Verify space created
waitForElementPresent link=Space05
verifyElementPresent link=Space05
click link=Space05
waitForTextPresent Space05 was created
verifyTextPresent Space05 was created
echo -- Add Activites
pause 1000
waitForElementPresent composerInput
type composerInput This is activity for Space 05
waitForElementPresent ShareButton
click ShareButton
echo -- Verify activity is added
waitForElementPresent composerInput
type //textarea[@id='composerInput'] this is activity for space 05
echo -- share link
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
echo -- click attach button
waitForElementPresent AttachButton
click AttachButton
echo -- share all
pause 2000
waitForElementPresent ShareButton
click ShareButton
pause 2000
waitForElementPresent link=Google
verifyElementPresent link=Google
verifyTextPresent Source : http://www.google.com
echo -- Delete Space created
click link=My 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=Logout
clickAndWait link=Logout