I have been trying to create a test case where a file uploads successfully in Cypress by installing the cypress-file-upload
plugin. However, it keeps returning a false positive. After doing further research, it seems that this plugin is not 100% dependable - It's hit or miss. I Was wondering if anyone had any workarounds for this and/or other solutions as to how to upload a file in Cypress. The stack is Node for the backend and Angular for the front end.
Asked
Active
Viewed 60 times
0

Cholis
- 61
- 1
- 2
- 5
-
Can you add the code to how you are uploading the file at the moment ? – ItsNotAndy Nov 11 '21 at 06:25
1 Answers
0
I have had issues with this plugin as well, one thing I would recommend is make sure to check if your input is hidden within the dom.

csb00
- 1,091
- 2
- 18
- 36