| open |
/csdemo/public/classic/ |
|
| windowMaximize |
|
|
| echo |
- Calendar basic actions |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| click |
//a[contains(@onclick,'login')] |
|
| echo |
-- Goto Calendar portlet |
|
| waitForElementPresent |
link=Agenda |
|
| clickAndWait |
link=Agenda |
|
| echo |
-- Create a Group -- |
|
| click |
//div[contains(@title,'Calendar Actions')] |
|
| click |
//a[contains(@href,'AddCalendarCategory')] |
|
| waitForElementPresent |
categoryName |
|
| type |
categoryName |
CS_Smoke_01 |
| type |
//form[@id='UICalendarCategoryForm']/div[2]/div/table/tbody/tr[2]/td[2]/textarea |
CS_Smoke_01_Des |
| click |
link=Save |
|
| waitForElementPresent |
//div[@title="CS_Smoke_01"] |
|
| clickAt |
//a[text()='Close'] |
|
| echo |
-- Create a calendar |
|
| click |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| click |
//a[@class='ItemIcon AddCalendarIcon'] |
|
| waitForElementPresent |
displayName |
|
| type |
displayName |
CS_Smoke_01 |
| type |
//div[@id='calendarDetail']/table/tbody/tr[2]/td[2]/textarea |
CS_Smoke_01_Des |
| click |
link=Save |
|
| echo |
-- Create a event -- |
|
| click |
link=Event |
|
| waitForElementPresent |
eventName |
|
| type |
eventName |
CS_Smoke_01 |
| type |
description |
CS_Smoke_01 |
| click |
//div[@id='QuickAddEventContainer']/div[2]/table/tbody/tr/td/div[1]/div/div/div |
|
| echo |
-- View event |
|
| waitForElementPresent |
//div[@class="EventContainer"] |
|
| mouseOver |
//div[@class="EventContainer"] |
|
| contextMenu |
//div[@class="EventContainer"] |
|
| click |
link=View |
|
| waitForElementPresent |
//div[contains(@onclick,'ClosePopup')] |
|
| click |
//div[contains(@onclick,'ClosePopup')] |
|
| echo |
-- View calendar in different view |
|
| click |
link=Today |
|
| click |
link=Day |
|
| click |
link=Week |
|
| click |
link=Month |
|
| click |
link=Year |
|
| click |
link=List |
|
| echo |
-- Delete Calendar |
|
| mouseOver |
//div[@class="MyCalendarContainer"] |
|
| contextMenu |
//a[@title='CS_Smoke_01'] |
|
| click |
//a[@class='ItemIcon RemoveCalendarIcon'] |
|
| waitForConfirmationPresent |
Are you sure to delete this calendar and all its events? |
|
| assertConfirmation |
Are you sure to delete this calendar and all its events? |
|
| echo |
-- Delete Group |
|
| click |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| waitForElementPresent |
//a[contains(@href,'AddCalendarCategory')] |
|
| click |
//a[contains(@href,'AddCalendarCategory')] |
|
| waitForElementPresent |
//div[@title='CS_Smoke_01'] |
|
| click |
//div[@title='CS_Smoke_01']/following::td/div/img[@title='Delete'] |
|
| waitForConfirmationPresent |
Are you sure to delete this category? |
|
| assertConfirmation |
Are you sure to delete this category? |
|
| click |
//a[text()='Close'] |
|
| echo |
-- Delete Event |
|
| waitForElementPresent |
link=Week |
|
| click |
link=Week |
|
| waitForElementPresent |
//div[@class="EventContainer"] |
|
| mouseOver |
//div[@class="EventContainer"] |
|
| contextMenu |
//div[@class="EventContainer"] |
|
| click |
link=Delete |
|
| waitForConfirmationPresent |
Are you sure to delete this feed? |
|
| assertConfirmation |
Are you sure to delete this feed? |
|
| echo |
-- Sign out |
|
| click |
link=Sign out |
|
| waitForElementPresent |
link=Sign in |
|