Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cenário Funcional - PBI 16586 #2

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading