Test_SNF_SOC_11_Demo_AddandDeleteApplication
open /socialdemo/public/classic/
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
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 Space11
type description This is description for Space_11
waitForElementPresent link=Create
click link=Create
pause 12000
echo -- Verify space created
waitForElementPresent link=Space11
click link=Space11
waitForTextPresent Space11 was created
verifyTextPresent Space11 was created
echo -- Add Application
waitForElementPresent //a[contains(@href,'space11/settings')]
click //a[contains(@href,'space11/settings')]
waitForElementPresent //div[text()='Applications']
click //div[text()='Applications']
waitForElementPresent link=Add Application
click link=Add Application
waitForElementPresent //div[@title='Gadget Wrapper Portlet']//div[@class='AplicationButton InstallApplicationButton']
click //div[@title='Gadget Wrapper Portlet']//div[@class='AplicationButton InstallApplicationButton']
pause 2000
echo -- Check Application added
click //div[@id='AddApplication']/div/a[@title='Close Window']
pause 2000
echo -- Delete Application
waitForElementPresent //div[text()='Gadget Wrapper']/following-sibling::div//a[@title='Remove']
click //div[text()='Gadget Wrapper']/following-sibling::div//a[@title='Remove']
waitForElementNotPresent link=Gadget Wrapper Portlet
verifyElementNotPresent link=Gadget Wrapper Portlet
echo -- Sign out
waitForElementPresent link=Sign out
clickAndWait link=Sign out