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-992:Remover categoria sem excluir sub categoria |
---|
14 | * |
---|
15 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
16 | * testcase&id=EL-992 |
---|
17 | * |
---|
18 | * @author L.F.Estivalet (Serpro) |
---|
19 | * |
---|
20 | * Created on Aug 11, 2011 at 10:27:54 AM |
---|
21 | * |
---|
22 | */ |
---|
23 | public class RemoverCategoriaSemExcluirSubTestCase extends BaseCalendarTestCase { |
---|
24 | |
---|
25 | @Parameters({ "nome", "nomeFilha" }) |
---|
26 | @Test |
---|
27 | public void removerCategoriaSemExcluirSubCategoria(String nome, |
---|
28 | String nomeFilha) { |
---|
29 | AppointmentCategoryPage acp = super.openAppointmentCategoryPage(); |
---|
30 | Integer catId = acp.findCategory(nome); |
---|
31 | |
---|
32 | Assert.assertNotNull(catId); |
---|
33 | |
---|
34 | RemoveAppointmentCategoryPage racp = acp.removeCategory(nome); |
---|
35 | acp = racp.removeCategory(); |
---|
36 | |
---|
37 | // Verifica que a categoria filha permanece na lista. |
---|
38 | catId = acp.findCategory(nomeFilha); |
---|
39 | |
---|
40 | Assert.assertNotNull(catId); |
---|
41 | } |
---|
42 | } |
---|