Test_SNF_CS06_ManageEvent
open /portal/intranet/
windowMaximize
echo -- Login
waitForElementPresent //b[contains(text(),'Sign in')]
click //b[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait id=UIPortalLoginFormAction
pause 5000
echo -- Add Event
waitForElementPresent link=Agenda
click link=Agenda
waitForElementPresent link=Event
click link=Event
waitForElementPresent eventName
type eventName Test_CS06_Event
type //div[@class='FormContainer']//textarea[@id='description'] Test_CS06_Event_description
click //div[@id='QuickAddEventContainer']//div[@class='ButtonRight']
waitForTextPresent Test_CS06_Event
verifyTextPresent Test_CS06_Event
echo -- Search for  and Edit Event
waitForElementPresent value
type value Test_CS06_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 EditEventIcon']
click //table[@id='RowContainerDay']//div[@class='IconHolder EditEventIcon']
waitForElementPresent //div[@id='UIPopupAddEventContainer']//input[@id='eventName']
type //div[@id='UIPopupAddEventContainer']//input[@id='eventName'] Test_CS06_Event_Edited
type //div[@id='UIPopupAddEventContainer']//textarea[@id='description'] Test_CS06_Event_description_Edited
click //div[@id='UIPopupAddEventContainer']//div[@class='ButtonRight']
waitForElementPresent link=Save
click link=Save
waitForTextPresent Test_CS06_Event_Edited
verifyTextPresent Test_CS06_Event_Edited
echo -- Delete Event
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