Test_SNF_SOC_24_Demo_ActiononActivity
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=Activities
click link=Activities
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[1].elements[1]
type document.forms[1].elements[1] This is Comment for Activity Demo
click document.forms[1].elements[2]
waitForTextPresent This is Comment for Activity Demo
verifyTextPresent This is Comment for Activity Demo
pause 500
echo --Delete Comment--
waitForElementPresent //div[2]/div/div[2]/span
click //div[2]/div/div[2]/span
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
waitForTextPresent You like this.
verifyTextPresent You like this.
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
waitForElementPresent link=Sign out
clickAndWait link=Sign out