Revision 4864,
1.1 KB
checked in by luiz-fernando, 13 years ago
(diff) |
Ticket #1771 - Adicionado testes automatizados para modulo da agenda
|
Line | |
---|
1 | package org.expressolivre.cte.email.filtro; |
---|
2 | |
---|
3 | import org.expressolivre.cte.common.BaseEmailTestCase; |
---|
4 | import org.expressolivre.cte.pages.email.MailFilterPage; |
---|
5 | import org.openqa.selenium.By; |
---|
6 | import org.testng.Assert; |
---|
7 | import org.testng.annotations.Test; |
---|
8 | |
---|
9 | /** |
---|
10 | * Suite:[FUN02.7] Gerenciar Filtros |
---|
11 | * |
---|
12 | * Caso de Teste: EL-1264:Excluir filtro fora do escritorio |
---|
13 | * |
---|
14 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
15 | * testcase&id=EL-1264 |
---|
16 | * |
---|
17 | * @author L.F.Estivalet (Serpro) |
---|
18 | * |
---|
19 | * Created on Jul 13, 2011 at 3:19:34 PM |
---|
20 | * |
---|
21 | */ |
---|
22 | public class ExcluirFiltroForaDoEscritorioTestCase extends BaseEmailTestCase { |
---|
23 | |
---|
24 | @Test |
---|
25 | public void excluirFiltroForaDoEscritorio() throws Exception { |
---|
26 | mp.assertMessage(MSG_EMAIL_FILTRO_FORA_ESCRITORIO_ATIVADO); |
---|
27 | |
---|
28 | MailFilterPage mfp = mp.editFilter(); |
---|
29 | mfp.selectOutOfOfficeFilterRule(); |
---|
30 | mfp.deleteFilters(); |
---|
31 | |
---|
32 | // Garantir que a regra foi excluida e nao aparece na tela. |
---|
33 | Assert.assertFalse(mfp.isElementPresent(By.id("out_0"))); |
---|
34 | |
---|
35 | mp.waitLoading(); |
---|
36 | |
---|
37 | mp.isNotDisplayed(mp.waitFindElement(By.id("em_div_write_msg"), 5000, |
---|
38 | 1000)); |
---|
39 | |
---|
40 | } |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.