| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| echo |
-- Action on Activites |
|
| clickAndWait |
link=exact:Acme: Social Intranet |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| pause |
1000 |
|
| waitForElementPresent |
link=My Activities |
|
| click |
link=My Activities |
|
| pause |
500 |
|
| waitForElementPresent |
link=My Status |
|
| click |
link=My Status |
|
| pause |
500 |
|
| echo |
-- Add Activites |
|
| type |
composerInput |
This is activity for User_Demo_24 |
| keyPress |
composerInput |
\13 |
| pause |
500 |
|
| waitForElementPresent |
ShareButton |
|
| click |
ShareButton |
|
| echo |
-- re-selecte my activities tab: will be remove after SOC-1505 is fixed-- |
|
| waitForElementPresent |
link=My Status |
|
| click |
link=My Status |
|
| pause |
500 |
|
| echo |
-- Verify activity is added |
|
| waitForTextPresent |
|
This is activity for User_Demo_24 |
| verifyTextPresent |
|
This is activity for User_Demo_24 |
| 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] |
|
| verifyTextPresent |
|
This is Comment for Activity Demo |
| pause |
500 |
|
| 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 |
//div[2]/div/div[1]/div[2] |
|
| click |
//div[2]/div/div[1]/div[2] |
|
| 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=Logout |
|
| clickAndWait |
link=Logout |
|
| close |
|
|