Test_SNF_CS13_AddEventForPublicCalendar
open /portal/public/intranet
windowMaximize
waitForElementPresent //div[2]/div[2]/div[1]/div/div/div[1]
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
waitForElementPresent password
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/calendar
pause 10000
echo -Add Task For Shared Calendar-
echo -- Add event to public calendar
waitForElementPresent link=Event
click link=Event
waitForElementPresent //form[@id='UIQuickAddTask']//input[@id='eventName']
type //form[@id='UIQuickAddEvent']//input[@id='eventName'] Test_CS13_Event
type //form[@id='UIQuickAddEvent']//textarea[@id='description'] Test_CS13_Event_description
select calendar label=users calendar
click //div[@id='QuickAddEventContainer']//div[@class='ButtonRight']
waitForTextPresent Test_CS13_Event
verifyTextPresent Test_CS13_Event
clickAndWait link=Logout
echo -- Login john to check the event public
open /portal/public/intranet
windowMaximize
waitForElementPresent //div[2]/div[2]/div[1]/div/div/div[1]
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username john
waitForElementPresent password
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/calendar
pause 10000
echo -- Search for and Delete Event
waitForElementPresent value
type value Test_CS13_Event
click //form[@id='UISearchForm']//div[@title='Search']
waitForElementPresent //div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow']
click //div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow']
waitForElementPresent //table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon']
click //table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon']
assertConfirmation Are you sure you want to delete?
clickAndWait link=Logout
close