Test_SNF_SOC_24_Demo_ActiononActivity
open /portal/public/intranet/
windowMaximize
echo -- Share and View link Fetcher gadget
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username john
type password gtn
clickAndWait id=UIPortalLoginFormAction
selectWindow null
waitForElementPresent link=Activity Streams
clickAndWait link=Activity Streams
waitForElementPresent link=My Status
click link=My Status
pause 1000
echo -- Add Activites
type composerInput This is activity for User_Demo_24
keyPress composerInput \13
waitForElementPresent ShareButton
click ShareButton
echo -- Verify activity is added
waitForTextPresent This is activity for User_Demo_24
verifyTextPresent This is activity for User_Demo_24
pause 500
echo -- Comment for Activities
waitForElementPresent link=Comment
click link=Comment
verifyElementPresent document.forms[3].elements[1]
type document.forms[3].elements[1] This is Comment for Activity Demo
click document.forms[3].elements[2]
waitForTextPresent This is Comment for Activity Demo
verifyTextPresent This is Comment for Activity Demo
echo --Delete Comment--
waitForElementPresent css=span.CloseCMContentHilight
click css=span.CloseCMContentHilight
assertConfirmation Are you sure to delete this comment?
waitForElementNotPresent This is Comment for Activity Demo
verifyTextNotPresent This is Comment for Activity Demo
echo -- Like and Unlike Activity
verifyElementPresent link=Like
click link=Like
verifyElementPresent link=Unlike
click link=Unlike
waitForTextNotPresent You like this.
verifyTextNotPresent You like this.
pause 500
echo --Delete User Activity
waitForElementPresent //h5/span
click //h5/span
assertConfirmation Are you sure to delete this activity?
waitForTextNotPresent This is activity for User_Demo_24
verifyTextNotPresent This is activity for User_Demo_24
echo --  Sign out
waitForElementPresent link=Logout
clickAndWait link=Logout