| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Manage calendar group- |
|
| 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 |
|
| echo |
-- Add Calendar group |
|
| waitForElementPresent |
link=Agenda |
|
| clickAt |
link=Agenda |
|
| pause |
2000 |
|
| waitForElementPresent |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| click |
//div[@onclick='eXo.calendar.UICalendarPortlet.showMainMenu(this, event);'] |
|
| waitForElementPresent |
//div[@id='tmpMenuElement']/div/div[2]/div/div/div[1]/a |
|
| click |
//div[@id='tmpMenuElement']/div/div[2]/div/div/div[1]/a |
|
| waitForElementPresent |
categoryName |
|
| type |
categoryName |
Test_01_group |
| type |
//div[@class='UIForm UICalendarCategoryForm']//textarea[@id='description'] |
Test_01_group_description |
| click |
link=Save |
|
| waitForTextPresent |
Test_01_group |
|
| verifyTextPresent |
Test_01_group |
|
| echo |
-- Edit Group |
|
| click |
//div[@id='UICategoryList']//tr[2]//img[@class='EditIcon'] |
|
| waitForElementPresent |
categoryName |
|
| verifyValue |
categoryName |
Test_01_group |
| verifyValue |
categoryName |
Test_01_group |
| verifyValue |
//div[@class='UIForm UICalendarCategoryForm']//textarea[@id='description'] |
Test_01_group_description |
| type |
categoryName |
Test_01_group_update |
| type |
//div[@class='UIForm UICalendarCategoryForm']//textarea[@id='description'] |
Test_01_group_update_description |
| click |
link=Save |
|
| waitForTextPresent |
Test_01_group_update |
|
| verifyTextPresent |
Test_01_group_update |
|
| waitForElementPresent |
//tr[2]/td[2]/div/img[2] |
|
| click |
//tr[2]/td[2]/div/img[2] |
|
| assertConfirmation |
The category will be deleted. Do you confirm ? |
|
| clickAndWait |
link=Sign out |
|
| close |
|
|