Test_SNF_SOC_11_Demo_AddandDeleteApplication
open /portal/public/default/
windowMaximize
echo -- Add and Delete Application in Space
clickAndWait link=exact:Acme: Social Intranet
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a
waitForElementPresent link=My Spaces
clickAndWait link=My Spaces
echo -- Add a new Space
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent name
type name Space11
type description This is description for Space_11
click link=Create
pause 10000
echo -- Verify space created
waitForElementPresent link=Space11
verifyElementPresent link=Space11
click link=Space11
waitForTextPresent Space11 was created
verifyTextPresent Space11 was created
echo -- Add Application
verifyElementPresent link=Space Settings
click link=Space Settings
waitForElementPresent //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']
click //div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']
waitForElementPresent //div[@class='AddAplicationButton']
click //div[@class='AddAplicationButton']//div[@class='IconButton']
pause 2000
waitForElementPresent //div[@title='Content Detail']//div[@class='AplicationButton InstallApplicationButton']
click //div[@title='Content Detail']//div[@class='AplicationButton InstallApplicationButton']
echo -- Check Application added
click //div[@id='AddApplication']//div[@class='CloseButton']
pause 3000
verifyTextPresent Content Detail
pause 500
echo -- Delete Application
waitForElementPresent link=2
click link=2
pause 1000
waitForElementPresent //div[@class='CenterButton RemoveButton']
click //div[@class='CenterButton RemoveButton']
waitForElementNotPresent link=Gadget Wrapper Portlet
verifyElementNotPresent link=Gadget Wrapper Portlet
echo -- Delete Space created
click link=My Spaces
waitForElementPresent //a[@title='Delete Space']
click //a[@title='Delete Space']
waitForConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
waitForElementPresent link=Logout
clickAndWait link=Logout
close