| open |
/csdemo/public/classic/ |
|
| windowMaximize |
|
|
| echo |
-Share canlendar- |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[contains(@onclick,'login')] |
|
| pause |
5000 |
|
| echo |
-- Add Calendar to share |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| waitForElementPresent |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| click |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| waitForElementPresent |
link=Add Calendar |
|
| click |
link=Add Calendar |
|
| waitForElementPresent |
displayName |
|
| type |
displayName |
Test_04_calendar |
| type |
//div[@id='calendarDetail']//textarea[@id='description'] |
Test_04_calendar_description |
| click |
link=Save |
|
| waitForElementPresent |
//a[@title='Test_04_calendar'] |
|
| verifyElementPresent |
//a[@title='Test_04_calendar'] |
|
| echo |
-- Share with view only right |
|
| mouseOver |
//a[@title='Test_04_calendar'] |
|
| contextMenu |
//a[@title='Test_04_calendar'] |
|
| waitForElementPresent |
//div[@class='UIContextMenuContainer ContextMenuContainer']//a[@class='ItemIcon SharedCalendarIcon'] |
|
| click |
//div[@class='UIContextMenuContainer ContextMenuContainer']//a[@class='ItemIcon SharedCalendarIcon'] |
|
| echo |
-- Share with edit right |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| click |
canEdit |
|
| clickAt |
//a[text()='Save'] |
|
| echo |
-- Share with no edit right |
|
| type |
username |
demo |
| clickAt |
//a[text()='Save'] |
|
| type |
username |
mary |
| clickAt |
//a[text()='Save'] |
|
| click |
//a[text()='Cancel'] |
|
| echo |
-- Edit a share user |
|
| mouseOver |
//a[@title='Test_04_calendar'] |
|
| contextMenu |
//a[@title='Test_04_calendar'] |
|
| clickAt |
//div[@class='UIContextMenuContainer ContextMenuContainer']//a[@class='ItemIcon SharedCalendarIcon'] |
|
| waitForElementPresent |
username |
|
| click |
canEdit |
|
| clickAt |
//a[text()='Save'] |
|
| clickAt |
//a[text()='OK'] |
|
| echo |
-- Delete a shared user |
|
| waitForElementPresent |
//img[@class='DeleteIcon'] |
|
| clickAt |
//img[@class='DeleteIcon'] |
|
| assertConfirmation |
Are you sure to delete this category? |
|
| waitForElementPresent |
//div[@id='UICalendarPopupWindow']//div[@class='TopLeftCornerDecorator']//div[@class='CloseButton'] |
|
| click |
//div[@id='UICalendarPopupWindow']//div[@class='TopLeftCornerDecorator']//div[@class='CloseButton'] |
|
| clickAndWait |
link=Sign out |
|
| open |
/csdemo |
|
| echo |
-- Login by demo to check the shared calendar- |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//a[contains(@onclick,'login')] |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| verifyElementNotPresent |
//a[@title='Test_04_calendar'] |
|
| pause |
1000 |
|
| clickAndWait |
link=Sign out |
|
| open |
/csdemo |
|
| echo |
-- Login by john to check the shared calendar- |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
//a[contains(@onclick,'login')] |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| verifyElementNotPresent |
//a[@title='Test_04_calendar'] |
|
| pause |
1000 |
|
| clickAndWait |
link=Sign out |
|
| echo |
-- Login by Mary to check the shared calendar- |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| clickAndWait |
//a[contains(@onclick,'login')] |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| mouseOver |
//a[@title='Test_04_calendar'] |
|
| contextMenu |
//a[@title='Test_04_calendar'] |
|
| clickAt |
//div[@class='UIContextMenuContainer ContextMenuContainer']//a[@class='ItemIcon EditCalendarIcon'] |
|
| waitForElementPresent |
displayName |
|
| pause |
1000 |
|
| clickAndWait |
link=Sign out |
|
| open |
/csdemo |
|
| echo |
-- Delete shared calendar |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[contains(@onclick,'login')] |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| pause |
3000 |
|
| waitForElementPresent |
//a[@title='Test_04_calendar'] |
|
| verifyElementPresent |
//a[@title='Test_04_calendar'] |
|
| mouseOver |
//a[@title='Test_04_calendar'] |
|
| contextMenu |
//a[@title='Test_04_calendar'] |
|
| waitForElementPresent |
link=Remove |
|
| click |
link=Remove |
|
| assertConfirmation |
Are you sure to delete this calendar and all its events? |
|
| clickAndWait |
link=Sign out |
|