| 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 |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| 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 |
//div[@title='Test_04_calendar'] |
|
| verifyElementPresent |
//div[@title='Test_04_calendar'] |
|
| echo |
-- Share with view only right |
|
| mouseOver |
//div[@title='Test_04_calendar'] |
|
| contextMenu |
//div[@title='Test_04_calendar'] |
|
| waitForElementPresent |
//div[@id='tmpMenuElement']/div/div[2]/div/div[1]/div[7]/a |
|
| click |
//div[@id='tmpMenuElement']/div/div[2]/div/div[1]/div[7]/a |
|
| echo |
-- Share with edit right |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| click |
canEdit |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[@title='john'] |
|
| verifyElementPresent |
//div[@title='john'] |
|
| verifyElementPresent |
//div[@title='Yes'] |
|
| echo |
-- Share with no edit right |
|
| type |
username |
demo |
| click |
link=Save |
|
| waitForElementPresent |
//div[@title='demo'] |
|
| verifyElementPresent |
//div[@title='demo'] |
|
| verifyElementPresent |
//div[@title='No'] |
|
| type |
username |
mary |
| click |
link=Save |
|
| echo |
-- Edit a share user |
|
| waitForElementPresent |
//div[@id='PermissionList']//tr[3]//img[@class='EditIcon'] |
|
| click |
//div[@id='PermissionList']//tr[3]//img[@class='EditIcon'] |
|
| waitForElementPresent |
username |
|
| click |
canEdit |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[@id='PermissionList']//tr[3]/td[2]/div |
|
| verifyElementPresent |
//div[@id='PermissionList']//tr[3]/td[2]/div |
Yes |
| echo |
-- Delete a shared user |
|
| waitForElementPresent |
//div[@id='PermissionList']//tr[3]//img[@class='DeleteIcon'] |
|
| click |
//div[@id='PermissionList']//tr[3]//img[@class='DeleteIcon'] |
|
| assertConfirmation |
The category will be deleted. Do you confirm ? |
|
| waitForElementNotPresent |
//div[@title='mary'] |
|
| verifyElementNotPresent |
//div[@title='mary'] |
|
| 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 |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| waitForElementPresent |
//div[@title='root- Test_04_calendar'] |
|
| mouseOver |
//div[@title='root- Test_04_calendar'] |
|
| contextMenu |
//div[@title='root- 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 |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| waitForElementPresent |
//div[@title='root- Test_04_calendar'] |
|
| mouseOver |
//div[@title='root- Test_04_calendar'] |
|
| contextMenu |
//div[@title='root- Test_04_calendar'] |
contextmenu |
| verifyElementPresent |
link=Edit |
|
| 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 |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| pause |
3000 |
|
| waitForElementPresent |
//div[@title='Test_04_calendar'] |
|
| verifyElementPresent |
//div[@title='Test_04_calendar'] |
|
| mouseOver |
//div[@title='Test_04_calendar'] |
|
| contextMenu |
//div[@title='Test_04_calendar'] |
|
| waitForElementPresent |
link=Remove |
|
| click |
link=Remove |
|
| assertConfirmation |
The calendar and all its events and tasks will be deleted. Do you confirm? |
|
| clickAndWait |
link=Sign out |
|
| close |
|
|