abramenal / cypress-file-upload

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

Trying to upload large or small video files then accepted fails #308

Open HindyB opened 3 years ago

HindyB commented 3 years ago

Hello, in my case where I used mp4box library to have a check on video metadata before sending a video, the above workaround does not work. It produces wrong video metadata. The below workaround works:

  • set encoding to base64 in cy.fixture()
  • set encoding in cypress-file-upload .attachFile to base64.

Hello, Thank you for this, however, I'm trying to upload large or small video files then accepted, in order to test the right error message. The following result is obtained: image

Originally posted by @HindyB in https://github.com/abramenal/cypress-file-upload/issues/136#issuecomment-850492050