Skip to content

Commit

Permalink
Atualizando empresa_keyword.robot
Browse files Browse the repository at this point in the history
- Passando "Test Teardown  Encerrar sessão" para o arquivo "empresa_test.robot"
- Removendo trechos de autenticação, pois estão concentrados na keyword "Realizar login (ADMIN)" 
- Removendo trechos com mapeamento de elementos não utilizados, etc
  • Loading branch information
AndressaKarla authored Nov 4, 2024
1 parent 8bc78d7 commit 067b3d8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions resources/keywords/empresa_keyword.robot
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
*** Settings ***
Library SeleniumLibrary

Test Teardown Encerrar sessão


Resource ../base.resource

*** Variables ***
${urlBase} https://automacao.qacoders.dev.br/login
${emailInput} id=email
${emailValido} sysadmin@qacoders.com
${senhaInput} id=password
${senhaValida} 1234@Test
${botaoInput} id=login
${dashboard} id=dashboard
${EMPRESAS_XPATH} //div[contains(@class, 'MuiListItemText-root css-1tsvksn') and contains(@id,'Cadastros')]
${CADASTROS_XPATH} //div[contains(@class, 'MuiListItemText-root css-1tsvksn') and contains(@id,'Cadastros')]
${NOME_COLUNA_XPATH} //div[contains(@class, 'css-wgzttu') and text()='Nome'] # XPath para a coluna "Nome"
Expand All @@ -27,7 +17,7 @@ Clicar na opção Cadastros
Click Element ${CADASTROS_XPATH}

Clicar no botão Empresa
Go To https://automacao.qacoders.dev.br/company
Go To ${URL}/company
Click Element ${EMPRESAS_XPATH}
Sleep 10 # Aguarda 5 segundos para visualizar a tela
Wait Until Element Is Visible ${NOME_COLUNA_XPATH} # Aguarda até a coluna "Nome" estar visível

0 comments on commit 067b3d8

Please sign in to comment.