package br.gov.serpro.cte.email.listar; import org.junit.Test; import br.gov.serpro.cte.common.ExpressoMailTestCase; /** * @author L.F.Estivalet (Serpro) * * Created on Nov 17, 2010 at 9:07:11 AM * */ public class LimparLixeiraTestCase extends ExpressoMailTestCase { @Test public void testaLimparLixeira() throws Exception { super.enterExpressoMail(); super.openFolder(Campo.PASTA_LIXEIRA.getValue()); selenium.click(Campo.LIMPAR_LIXEIRA.getValue()); assertTrue(selenium.getConfirmation().matches( Mensagem.LIMPAR_LIXEIRA.getValue())); super.waitForElement(Campo.MENSAGEM.getValue()); assertEquals(Mensagem.LIXEIRA_LIMPA.getValue(), selenium.getText(Campo.MENSAGEM.getValue())); // Garantir que nao tem nenhum email na lixeira. assertEquals("0", super.getTotalEmails()); } }