Skip to content

Commit

Permalink
Merge pull request #2 from AndressaKarla/pbi-16586-editar-cadastro-user
Browse files Browse the repository at this point in the history
Cenário Funcional - PBI 16586
  • Loading branch information
AndressaKarla authored Oct 29, 2024
2 parents ccfc573 + 92b7b7a commit 7414795
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/keywords/login_keyword.robot
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ Realizar login (ADMIN)
Gerar e obter dados usuario admin dinâmico
Informar os campos de email e senha de um usuário ADMIN email_admin=${EMAIL_ADMIN} senha_admin=${SENHA_CONFIRME_A_SENHA}
Clicar no botão "ENTRAR"
Apresentar a tela Home
Apresentar a tela Home
11 changes: 11 additions & 0 deletions resources/keywords/usuario_keyword.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Resource ../../resources/base.resource
*** Variables ***
${menu_cadastros} id=Cadastros
${menu_usuarios} id=Usuários

${botao_novo_cadastro} css=button[class="css-fvzsut"]
${modal_novo_cadastro} css=div.css-g7173l > div > form > h5
${campo_nome_completo} css=input[name="fullName"]
Expand All @@ -17,6 +18,9 @@ ${campo_senha} css=input[name="password"]
${campo_confirme_a_senha} css=input[name="confirmPassword"]
${botao_salvar_novo} css=button[class="css-1vmo4go"]

${botao_editar} (//button[@id='edit'])[1]
${modal_editar_cadastro} css=div.css-g7173l > div > form > h5


*** Keywords ***
Clicar no menu "Cadastros > Usuários"
Expand Down Expand Up @@ -70,3 +74,10 @@ Clicar no botão "SALVAR NOVO"
Apresentar a tela "Usuários"
Sleep ${TIMEOUT}
Location Should Be ${URL}/user

Clicar no botão "Editar"
Wait Until Element Is Visible ${botao_editar}
Click Element ${botao_editar}

Apresentar o modal "Editar Cadastro"
Wait Until Element Is Visible ${modal_editar_cadastro}
7 changes: 7 additions & 0 deletions tests/usuario_test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ Novo Cadastro Usuário (ADMIN) - Campos corretos - Validar apresentar a tela "Us
Informar os campos necessários nome_completo=${NOME_COMPLETO} email=${EMAIL_ADMIN} cpf=${CPF} senha_confirme_a_senha=${SENHA_CONFIRME_A_SENHA}
Clicar no botão "SALVAR NOVO"
Apresentar a tela "Usuários"

Editar Cadastro Usuário (ADMIN) - Validar apresentar o modal "Editar Cadastro"
[Tags] editar_admin regressao
Realizar login (ADMIN)
Clicar no menu "Cadastros > Usuários"
Clicar no botão "Editar"
Apresentar o modal "Editar Cadastro"

0 comments on commit 7414795

Please sign in to comment.