| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/calendar |
|
| pause |
10000 |
|
| echo |
-Share canlendar- |
|
| echo |
-- Add Calendar to share |
|
| 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 |
link=Share |
|
| click |
link=Share |
|
| 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=Logout |
|
| echo |
-- Login by demo to check the shared calendar- |
|
| echo |
-- Login |
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/calendar |
|
| pause |
10000 |
|
| waitForElementPresent |
//div[@title='root- Test_04_calendar'] |
|
| mouseOver |
//div[@title='root- Test_04_calendar'] |
|
| contextMenu |
//div[@title='root- Test_04_calendar'] |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by john to check the shared calendar- |
|
| echo |
-- Login |
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/calendar |
|
| pause |
10000 |
|
| 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 |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Delete shared calendar |
|
| echo |
-- Login |
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/calendar |
|
| pause |
10000 |
|
| 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. Do you confirm? |
|
| clickAndWait |
link=Logout |
|
| close |
|
|