Closed bluepioupiou closed 3 years ago
I tried npm i
and it looks again after version update ;)
I'm getting same error/problem with cypress 6.0
Getting the similar error after updating from cypress 6.2.0 to 6.2.1; Seems like something is up with this library and how it handles updates to Cypress. I went so far as to delete my 'node_modules' folder and do an npm install
, but the issue persists.
I've tried to reproduce it on CI, but no luck – all works just fine. Can someone set up some reproducible example so I can work on the fix?
I can work on an example this weekend as I am still getting this issue with pdf files on cypress 6.2.0 +. Additionally, it appears that the file size is different from a manual upload for .pdf files. was an encoding issue.
The same bug on cypress 6.3.0
This plugin is running fine on Cypress 6.2.0, but failing on pdf uploads in Cypress 6.2.0+. Cypress related issues: Cypress#14275 & Cypress#15038
Hey peeps, can anyone check if this issue is reproducible in this package's version? In your package.json:
"cypress-file-upload": "github:abramenal/cypress-file-upload#feature/fix-bundle",
It tooks the code from this PR's branch: https://github.com/abramenal/cypress-file-upload/pull/285
upgrade from Cypress 6.2 --> 6.8 and changed cypress-file-upload from 5.0.2 --> "github:abramenal/cypress-file-upload#feature/fix-bundle"
this resulted in
Should be resolved in v5.0.4
, but feel free to reopen if you still observe this.
Current behavior:
With cypress 5.3, an error pop with attachFile function that was working before with cypress 4.8. And there is no file really input at the end
`(0 , h[e.encoding])(...).then is not a function C:/Users/abegey/workspace/agence-numerique/node_modules/cypress-file-upload/dist/bundle.js:1:4632
Desired behavior:
No error and the filed inputed correctly
Steps to reproduce: (app code and test code)
A file input present on the page and a file image.jpeg in the fixtures
cy.get("input[type=file]").attachFile("image.jpeg");
Versions
Cypress 5.3, cypress-file-upload: 4.1.1