abramenal / cypress-file-upload

File upload testing made easy
https://npm.im/cypress-file-upload
MIT License
496 stars 89 forks source link

[Bug]Unable to uploading image when html tag as button #372

Open rjena2 opened 1 year ago

rjena2 commented 1 year ago

Current behavior:

Unable to uploading image when html tag as button

Desired behavior:

Should able to upload image for tag as button

Steps to reproduce: (app code and test code)

fixtures file: copy an image file under fixture folder eg. 'test.jpg'

spec file: const img = 'test.jpg'

cy.contains('Upload').should('be.visible').should('be.enabled') Above step is working as expetced.

cy.contains('Upload').attachFile(img); Above step is not return any error but it is not uploading image. ![Uploading image.png…]()

Versions

Cypress 10 Windows 10

idanElitzur commented 1 year ago

any news regarding this one? I dealing with the same issue :/