Skip to content

Commit

Permalink
fix: ✅ Fix e2e tests - add new image to disable dummy button
Browse files Browse the repository at this point in the history
  • Loading branch information
NadeigeC committed Aug 17, 2023
1 parent 6a63281 commit 6bc40cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/get-basegun-result.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ describe('Get Basegun result', () => {
cy.visit('/instructions')
cy.getByDataTestid('select-file').as('fileInput')
cy.intercept('POST','/api/upload').as('upload')
cy.get('@fileInput').selectFile('./cypress/images/autre-pistolet.jpg', { force: true })
cy.get('@fileInput').selectFile('./cypress/images/pistolet-ancien-a-percussion-monocoup.jpg', { force: true })
cy.wait('@upload').then(({ response }) => {
expect(response.statusCode).to.eq(200)
})
cy.url().should('contain','/resultat')
cy.getByDataTestid('legal-category').contains('Catégorie A, B ou D')
cy.getByDataTestid('legal-category').contains('D')
cy.getByDataTestid('dummy-button')
.should('be.disabled')
.contains('Pas de guide de vérification')
Expand Down
Binary file modified frontend/cypress/images/autre-pistolet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6bc40cc

Please sign in to comment.