[4917] | 1 | package org.expressolivre.cte.calendar.preferencias; |
---|
| 2 | |
---|
| 3 | import org.expressolivre.cte.common.BaseCalendarTestCase; |
---|
| 4 | import org.expressolivre.cte.pages.calendar.AppointmentCategoryPage; |
---|
| 5 | import org.expressolivre.cte.pages.calendar.RemoveAppointmentCategoryPage; |
---|
| 6 | import org.testng.Assert; |
---|
| 7 | import org.testng.annotations.Parameters; |
---|
| 8 | import org.testng.annotations.Test; |
---|
| 9 | |
---|
| 10 | /** |
---|
| 11 | * Suite:[FUN03.8] Alterar preferencias da agenda |
---|
| 12 | * |
---|
| 13 | * Caso de Teste: EL-991:Remover categoria com sub categoria |
---|
| 14 | * |
---|
| 15 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
| 16 | * testcase&id=EL-991 |
---|
| 17 | * |
---|
| 18 | * @author L.F.Estivalet (Serpro) |
---|
| 19 | * |
---|
| 20 | * Created on Aug 11, 2011 at 10:34:54 AM |
---|
| 21 | * |
---|
| 22 | */ |
---|
| 23 | public class RemoverCategoriaESubTestCase extends BaseCalendarTestCase { |
---|
| 24 | |
---|
| 25 | @Parameters({ "nome", "nomeFilha" }) |
---|
| 26 | @Test |
---|
| 27 | public void removerCategoria(String nome, String nomeFilha) { |
---|
| 28 | AppointmentCategoryPage acp = super.openAppointmentCategoryPage(); |
---|
| 29 | Integer catId = acp.findCategory(nome); |
---|
| 30 | |
---|
| 31 | Assert.assertNotNull(catId); |
---|
| 32 | |
---|
| 33 | RemoveAppointmentCategoryPage racp = acp.removeCategory(nome); |
---|
| 34 | racp.setRemoveSubCategories(); |
---|
| 35 | acp = racp.removeCategory(); |
---|
| 36 | |
---|
| 37 | // Verifica se a categoria foi realmente removida |
---|
| 38 | Assert.assertNull(acp.findCategory(nome)); |
---|
| 39 | Assert.assertNull(acp.findCategory(nomeFilha)); |
---|
| 40 | } |
---|
| 41 | } |
---|