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 mary
type password gtn
echo --Log in
clickAndWait id=UIPortalLoginFormAction
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 30000
echo -- Verify space created
waitForElementPresent 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
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
waitForElementPresent ShareButton
click ShareButton
waitForElementPresent link=Google
verifyElementPresent link=Google
verifyTextPresent Source : http://google.com
echo -- Log out
waitForElementPresent link=Logout
clickAndWait link=Logout