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

Exemplo snapshot inicial #50

Merged
merged 4 commits into from
Jun 6, 2021
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![pipeline status](https://github.com/jalussa-santos/cypress-example/actions/workflows/node.js.yml/badge.svg)](https://github.com/jalussa-santos/cypress-example/actions)
[![pipeline status](https://github.com/jalussa-santos/cypress-example/actions/workflows/node.js.yml/badge.svg)](https://github.com/jalussa-santos/cypress-example/actions) [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/fa97d80b/exemplo-cypress-percy)

# cypress-example
> Projeto para desenvolver habilidades na ferramenta cypress. Veja mais informações das lições aprendidas na [Wiki](https://github.com/jalussa-santos/cypress-example/wiki)
Expand Down Expand Up @@ -113,6 +113,10 @@ npm test
* [Interagindo com execução a nível de sistema](https://github.com/jalussa-santos/cypress-example/issues/36)
* [Realizando leitura de arquivo](https://github.com/jalussa-santos/cypress-example/issues/36)

* **Teste de regressão visual**

* [Criando snapshot](https://github.com/jalussa-santos/cypress-example/issues/49)

### Time

> Jalussa dos Santos | [Linkedin](https://www.linkedin.com/in/jalussa/) | [Github](https://github.com/jalussa-santos) | [Gitlab](https://gitlab.com/jalussa.santos)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('Ticketbox', () => {
beforeEach(() => cy.visit("https://ticket-box.s3.eu-central-1.amazonaws.com/index.html"));
it('Checar o estado inicial da aplicação', () => {
cy.percySnapshot();
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "cypress run",
"test:exemploBasico": "cypress run --config baseUrl=https://ticket-box.s3.eu-central-1.amazonaws.com/index.html --spec cypress/integration/exemploBasico/tickets.spec.js",
"test:exemploTesteRegressaoVisual": " percy exec -- cypress run --config baseUrl=https://ticket-box.s3.eu-central-1.amazonaws.com/index.html --spec cypress/integration/exemploBasico/tickets.spec.js"
"test:exemploTesteRegressaoVisual": " percy exec -- cypress run --config baseUrl=https://ticket-box.s3.eu-central-1.amazonaws.com/index.html --spec cypress/integration/exemploTesteRegressaoVisual/ticketBox.spec.js"
},
"keywords": [
"cypress",
Expand Down