i’d like to run some tests on the Backend with cypress.
Now i run into the problem that i’d like to test a file field upload and don’t know how to solve this.
A search here in the forum gives only one cypress result.
i’ve installed the upload plugin GitHub - abramenal/cypress-file-upload: File upload testing made easy for cypress and with the following code a file gets uploaded but not shown in the backend or reconized after saving the page.
cy.get('input[type="file"]')
.as('fileInput')
.attachFile('teaser.jpg')
anyone here got an idea or solution?