Skip to content

Commit

Permalink
demo: workflow no gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoRoccella committed Jan 4, 2024
1 parent 73d04d3 commit e5e923a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
- name: Checkout do código
uses: actions/checkout@v4

# Install npm dependencies, cache them correctly
# and run all Cypress tests

- name: Cypress run
uses: cypress-io/github-action@v6
with:
Expand Down
14 changes: 10 additions & 4 deletions cypress/e2e/projeto-carro.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ describe('Testes E2E para o Projeto Carro', () => {

});

context('Testes para Desktop', () => {
context('Testes para Desktop (padrão)', () => {

beforeEach(() => {

cy.viewport(1000, 660);

});

it('Verifica se a altura do overlay é o mesmo da imagem base', () => {

Expand Down Expand Up @@ -91,9 +97,9 @@ describe('Testes E2E para o Projeto Carro', () => {
cy.get('[data-test="rodape"]').children('p').should('exist');
cy.get('[data-test="rodape"]').children('p').children('a').should('exist');

cy.get('[data-test="repo"]').invoke('attr', 'href').then(link => {
cy.get('[data-test="repo"]').invoke('attr', 'href').then(href => {

cy.request(link).then(resposta => {
cy.request(href).then(resposta => {

expect(resposta.status).to.equal(200);

Expand All @@ -116,7 +122,7 @@ describe('Testes E2E para o Projeto Carro', () => {

});

context('Testes para Mobile', () => {
context('Testes para Mobile (380 x 600)', () => {

beforeEach(() => {

Expand Down
Binary file not shown.

0 comments on commit e5e923a

Please sign in to comment.