| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
- Manage personal calendar |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| click |
//a[contains(@onclick,'login')] |
|
| echo |
-- Agenda |
|
| waitForElementPresent |
link=Agenda |
|
| clickAndWait |
link=Agenda |
|
| echo |
-- Calendar Action |
|
| waitForElementPresent |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| click |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| echo |
-- Add Calendar |
|
| waitForElementPresent |
link=Add Calendar |
|
| click |
link=Add Calendar |
|
| waitForElementPresent |
displayName |
|
| type |
displayName |
Test_02_calendar |
| type |
//div[@id='calendarDetail']//textarea[@id='description'] |
Test_02_calendar_description |
| echo |
-- Save |
|
| waitForElementPresent |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| click |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| echo |
-- Edit Calendar |
|
| waitForElementPresent |
//a[@title='Test_02_calendar'] |
|
| mouseOver |
//a[@title='Test_02_calendar'] |
|
| contextMenu |
//a[@title='Test_02_calendar'] |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| waitForElementPresent |
displayName |
|
| verifyValue |
displayName |
Test_02_calendar |
| type |
displayName |
Test_02_calendar_edited |
| type |
//div[@id='calendarDetail']//textarea[@id='description'] |
Test_02_calendar_description_edited |
| echo |
-- Save |
|
| waitForElementPresent |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| click |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| waitForElementPresent |
//a[@title='Test_02_calendar_edited'] |
|
| verifyElementPresent |
//a[@title='Test_02_calendar_edited'] |
|
| echo |
-- Delete Calendar |
|
| mouseOver |
//a[@title='Test_02_calendar_edited'] |
|
| contextMenu |
//a[@title='Test_02_calendar_edited'] |
|
| waitForElementPresent |
link=Remove |
|
| click |
link=Remove |
|
| assertConfirmation |
Are you sure to delete this calendar and all its events? |
|
| echo |
-- Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|