Test_USR_PLF_INT_CAL_01_AddCalendarForSpace
windowMaximize
open /portal/public/intranet/
waitForElementPresent //div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div
click //div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div
waitForElementPresent name=username
type name=username root
type name=password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
clickAndWait link=Applications Registry
waitForElementPresent //div[@id='UIApplicationOrganizer']/div/div[2]
click //div[@id='UIApplicationOrganizer']/div/div[2]
assertConfirmation This action will automatically create categories and import all the gadgets and portlets on it.
clickAndWait link=Home
waitForElementPresent link=Show all
click link=Show all
waitForElementPresent link=Add New Space
click link=Add New Space
waitForElementPresent id=name
type id=name USR PLF INT CAL 01
waitForElementPresent link=Create
click link=Create
pause 5000
waitForElementPresent //div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/div/a
click //div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/div/a USR PLF INT CAL 01
echo -- Select Space Setting
clickAndWait //div[@id='UISpaceMenu']/div/div[9]/a/span
echo -- Select Application tab
waitForElementPresent //div[@id='UITabPane']/div/div/div[4]/div/div/div/div
click //div[@id='UITabPane']/div/div/div[4]/div/div/div/div
click link=2
click //form[@id='UISpaceApplication']/div[2]/div/div[2]/div/div[2]/div/div/div
click //form[@id='UISpaceApplication']/div[4]/div/div/div/div
click link=calendar
click //div[@id='calendar/local._calendar.CalendarPortlet']/div/div/div/div[3]
click //div[@id='AddApplication']/div/div/div/div/div/div[2]
clickAndWait //div[@id='UISpaceMenu']/div/div[4]/a/span
verifyTextPresent Add event
clickAndWait link=My Spaces
click //div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/a
assertConfirmation Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too.
clickAndWait link=Logout