Teste de adição, edição e remoção de Tarefas
open elefante
type email corbucci@ime.usp.br
type senha hugo
clickAndWait login
clickAndWait link=Ir para a pagina inicial
assertXpathCount //*[@class="tarefa"] 3
clickAndWait Adicionar Tarefa
type Titulo Corrigir Fase
type Descricao Corrigir a fase 2 do projeto de POO. Elaborar o criterio e aplicar a todos os grupos.
type Prioridade 3
select Data label=June
type Data-day 1
type Data-year 2008
type Rotulos poo, monitoria
type Estimativa 16:00:00
clickAndWait Nova Tarefa
assertXpathCount //*[@class="tarefa"] 4
clickAndWait Edicao Corrigir Fase
verifyValue Titulo Corrigir Fase
verifyValue Descricao Corrigir a fase 2 do projeto de POO. Elaborar o criterio e aplicar a todos os grupos.
verifyValue Prioridade 3
verifySelectedLabel Data June
verifyValue Data-day 1
verifyValue Data-year 2008
verifyValue Rotulos poo, monitoria
verifyValue Estimativa 16:00:00
type Titulo Corrigir Fase 2
clickAndWait Nova Tarefa
assertXpathCount //*[@class="tarefa"] 4
clickAndWait Remover Corrigir Fase 2
clickAndWait link=Sim, apagar.
assertXpathCount //*[@class="tarefa"] 3
clickAndWait sair
clickAndWait link=OK