Skip to content

Commit

Permalink
test: erro no teste
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoRoccella committed Jan 4, 2024
1 parent d221e54 commit 869ffa5
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions cypress/e2e/projeto-carro.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,20 @@ describe('Testes E2E para o Projeto Carro', () => {

});

// it('Verifica se o espelho é clicável na viewport', () => {
it('Verifica se o espelho é clicável na viewport', () => {


// cy.get('area[data-target="espelho-retrovisor"]').invoke('attr', 'coords').then(coords => {
cy.get('area[data-target="espelho-retrovisor"]').invoke('attr', 'coords').then(coords => {

// const [x, y] = coords.split(',').map(coord => parseInt(coord.trim(), 10));
const [x, y] = coords.split(',').map(coord => parseInt(coord.trim(), 10));

// expect(x).to.be.at.most(380);
expect(x).to.be.at.most(380);

// expect(y).to.be.at.most(600);
expect(y).to.be.at.most(600);

// });
});

// });
});

it('Verifica se o parabrisa é clicável na viewport', () => {

Expand All @@ -267,5 +267,4 @@ describe('Testes E2E para o Projeto Carro', () => {

});


});

0 comments on commit 869ffa5

Please sign in to comment.