source: devel/testlink/automation/src/test/java/br/gov/serpro/cte/email/listar/LimparLixeiraTestCase.java @ 3521

Revision 3521, 821 bytes checked in by luiz-fernando, 13 years ago (diff)

Ticket #1402 - Automacao dos casos de teste do Expresso documentados no Testlink

Line 
1package br.gov.serpro.cte.email.listar;
2
3import org.junit.Test;
4
5import br.gov.serpro.cte.common.ExpressoMailTestCase;
6
7/**
8 * @author L.F.Estivalet (Serpro)
9 *
10 *         Created on Nov 17, 2010 at 9:07:11 AM
11 *
12 */
13public class LimparLixeiraTestCase extends ExpressoMailTestCase {
14        @Test
15        public void testaLimparLixeira() throws Exception {
16                super.enterExpressoMail();
17                super.openFolder(Campo.PASTA_LIXEIRA.getValue());
18                selenium.click(Campo.LIMPAR_LIXEIRA.getValue());
19                assertTrue(selenium.getConfirmation().matches(
20                                Mensagem.LIMPAR_LIXEIRA.getValue()));
21                super.waitForElement(Campo.MENSAGEM.getValue());
22                assertEquals(Mensagem.LIXEIRA_LIMPA.getValue(),
23                                selenium.getText(Campo.MENSAGEM.getValue()));
24                // Garantir que nao tem nenhum email na lixeira.
25                assertEquals("0", super.getTotalEmails());
26        }
27
28}
Note: See TracBrowser for help on using the repository browser.