abramenal / cypress-file-upload

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

AttachFile failing with error cy.screenshot() timeout when running the tests in headless mode #312

Open elisa-dc opened 3 years ago

elisa-dc commented 3 years ago

Current behavior:

Hello! we use the plugin to upload a single jpeg file

cy.get('my_file_input_selector').attachFile('flle_to_upload.jpeg');

This works as expected when running the tests in the browser, but it fails when we run the test in --headless mode

image

Desired behavior:

We'd like to be able to run the tests in headless mode too

Versions

cypress-file-upload: 5.0.7 Cypress package version: 6.8.0 Cypress binary version: 6.8.0 Electron version: 11.3.0 Bundled Node version: 12.18.3 Chrome: 91

OndeVai commented 1 year ago

Bump!