abramenal / cypress-file-upload

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

[Bug] - attachFile method is duplicating attachments in Firefox #339

Open SantiagoSM opened 2 years ago

SantiagoSM commented 2 years ago

Current behavior:

I have a suite with different tests to add attachments following the next structure :

let filenames = ['files/test2.pdf','files/test3.pdf']; cy.get('.mydropzone').attachFile(fileNames, { subjectType: 'drag-n-drop' }); ` The first test is executing fine in Firefox, adding the two files, but the second, adds 4 files, the thrid 6 files...and so on

image

Desired behavior:

The expected behaviour is only adds the send fles to the dropzone, as on the other browsers (Electron, Chrome) is already happening

Steps to reproduce: (app code and test code)

Versions

Cypress 8.5.0 Firefox 91 Ubuntu and Windows 10

egmox commented 7 months ago

Is there any update regarding this bug? Is it logged somewhere? @abramenal

abramenal commented 7 months ago

@egmox I don't think so, this is still a relevant issue to look into

guillermoHernandezSecuoyas commented 4 months ago

Any updates??

umariys commented 2 weeks ago

I'm also facing duplicate file upload issue in Firefox. File upload works fine in other browser like edge and chrome.