Test_SNF_SOC_29_Demo_ShareViewLinkGadge
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username john
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
waitForElementPresent link=Spaces
clickAndWait link=Spaces
echo -- Add a new Space
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent displayName
type displayName Space29
type description This is description for Space_29
waitForElementPresent link=Create
clickAt link=Create 2,2
pause 1000
waitForElementPresent link=Space29
click link=Space29
pause 2000
waitForElementPresent //a[contains(@href,'space29/dashboard')]
clickAndWait //a[contains(@href,'space29/dashboard')]
echo --Add Rss Fetcher gadget
waitForElementPresent link=Add Gadgets
click link=Add Gadgets
waitForElementPresent xpath=//div[@title='Rss Reader']
dragAndDropToObject xpath=//div[@title='Rss Reader'] xpath=//div[@class='UIDashboardContainer']
echo --Close Dashboard workspace
waitForElementPresent css=a.CloseButton
click css=a.CloseButton
echo -- Share link
waitForElementPresent //a[@id='link_title_0']
click //a[@id='link_title_0']
echo -- View Share link in Activity
waitForElementPresent link=Activities
clickAndWait link=Activities
waitForElementPresent link=My Status
click link=My Status
waitForElementPresent //p[@class='Content']//a Shared a link
verifyElementPresent //p[@class='Content']//a Shared a link
echo --Delete Activity
waitForElementPresent //h5/span
click //h5/span
assertConfirmation Are you sure to delete this activity?
waitForTextNotPresent Shared a link
verifyTextNotPresent Shared a link
pause 500
echo -- Delete Drag and drop Gadget
waitForElementPresent //a[contains(@href,'space29/dashboard')]
clickAndWait //a[contains(@href,'space29/dashboard')]
waitForElementPresent css=span.CloseGadget.IconControl
click css=span.CloseGadget.IconControl
waitForConfirmation Are you sure to delete this gadget?
waitForTextPresent Drag your gadgets here.
verifyTextPresent Drag your gadgets here.
waitForElementPresent link=Spaces
clickAndWait link=Spaces
waitForElementPresent //div//a[text()='Space29']/ancestor::div/ul//a[@title='Delete']
click //div//a[text()='Space29']/ancestor::div/ul//a[@title='Delete']
waitForConfirmation Cannot undo one deleted space with all its page navigations and group. Are you sure to delete this space?
echo -- Verify space deleted
waitForTextNotPresent Space29
verifyTextNotPresent Space29
waitForElementPresent link=Sign out
clickAndWait link=Sign out