-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Realizando e adaptando boa parte das refatorações sugeridas no PR 1 -…
… Refactor the whole thing da live Talking About Testing 11.02.2023
- Loading branch information
1 parent
339ad5a
commit b79c2ff
Showing
10 changed files
with
61 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,12 @@ jobs: | |
steps: | ||
- name: Passo 1 - Obter cópia do código-fonte do repositório | ||
uses: actions/[email protected] | ||
|
||
- name: Passo 2 - Redirecionar o conteúdo de "secrets.LOGIN_ENV" para o arquivo "login.json" | ||
run: | | ||
echo '${{ secrets.LOGIN_ENV }}' > ./cypress/fixtures/login.json | ||
- name: Passo 2 - Instalar dependências, Executar testes em modo headless (2º plano) em um ambiente de desenvolvimento e Gerar os resultados dos testes | ||
- name: Passo 3 - Instalar dependências, Executar testes em modo headless (2º plano) em um ambiente de desenvolvimento e Gerar os resultados dos testes | ||
uses: cypress-io/[email protected] | ||
with: | ||
# forçar, mesmo tendo possíveis conflitos, a instalação das dependências do projeto do arquivo "package.json" | ||
|
@@ -56,5 +60,4 @@ jobs: | |
with: | ||
name: cypress-screenshots-chrome | ||
path: ./cypress/screenshots | ||
# armazena por 30 dias | ||
retention-days: 30 |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
node_modules | ||
cypress/downloads | ||
cypress/fixtures/*.json | ||
!cypress/fixtures/*.example.json | ||
cypress/videos | ||
cypress/screenshots | ||
cypress/screenshots | ||
node_modules | ||
.DS_Store |
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
const { defineConfig } = require('cypress') | ||
|
||
module.exports = defineConfig({ | ||
viewportWidth: 1280, | ||
viewportHeight: 720, | ||
|
||
e2e: { | ||
viewportWidth: 1280, | ||
viewportHeight: 720, | ||
|
||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
const environment = config.env.environment || 'dev' | ||
config.env = require(`./cypress/support/environments/${environment}.json`) | ||
config.baseUrl = config.env.urlDefault | ||
config.baseUrl = config.env.baseUrl | ||
|
||
return config | ||
}, | ||
}, | ||
}); | ||
}) |
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,14 @@ | ||
{ | ||
"adminValido": { | ||
"emailValido": "[email protected]", | ||
"senhaValida": "informar-senha-usuario-admin-valido" | ||
}, | ||
"invalido": { | ||
"emailInvalidoVazio": "deixar-apenas-as-aspas-duplas", | ||
"senhaInvalidaVazia": "deixar-apenas-as-aspas-duplas", | ||
"emailInvalidoDominioSemPonto": "informar-email-usuario-invalido-dominio-sem-ponto@dominio", | ||
"senhaValida": "informar-senha-usuario-valido", | ||
"emailInvalidoNaoCadastrado": "[email protected]", | ||
"senhaInvalidaNaoCadastrada": "informar-senha-usuario-invalido-nao-cadastrada" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"urlDefault": "https://front.serverest.dev", | ||
"baseUrl": "https://front.serverest.dev", | ||
"baseUri": "https://serverest.dev" | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"urlDefault": "http://localhost:3001", | ||
"baseUrl": "http://localhost:3001", | ||
"baseUri": "https://serverest.dev" | ||
} |
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