-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4296683
commit b6506e8
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
*** Settings *** | ||
Documentation Arquivo com variáveis locais e palavras-chave da funcionalidade de usuário | ||
Resource ../../resources/base.resource | ||
|
||
*** Variables *** | ||
${menu_cadastros} id=Cadastros | ||
${menu_usuarios} id=Usuários | ||
${botao_editar} (//button[@id='edit'])[1] | ||
${modal_editar_cadastro} css=div.css-g7173l > div > form > h5 | ||
|
||
|
||
*** Keywords *** | ||
Clicar no menu "Cadastros > Usuários" | ||
Wait Until Element Is Visible ${menu_cadastros} | ||
Click Element ${menu_cadastros} | ||
|
||
Wait Until Element Is Visible ${menu_usuarios} | ||
Click Element ${menu_usuarios} | ||
|
||
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*** Settings *** | ||
Documentation Arquivo com os casos de testes da funcionalidade de usuário | ||
Resource ../resources/base.resource | ||
Resource ../resources/keywords/login_keyword.robot | ||
Resource ../resources/keywords/usuario_keyword.robot | ||
|
||
Test Teardown Encerrar sessão | ||
|
||
|
||
*** Test Cases *** | ||
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" |