cypress-file-upload icon indicating copy to clipboard operation
cypress-file-upload copied to clipboard

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

Open rjena2 opened this issue 3 years ago • 1 comments

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

rjena2 avatar Jul 15 '22 05:07 rjena2

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

idanElitzur avatar Jan 22 '23 13:01 idanElitzur