Hal Patinkin
Hal Patinkin

Reputation: 152

Download not going to configured folder in Cypress test

I'm testing file download in multiple browsers. In Chrome it downloads as expected, but in Firefox the folder used is not the default cypress/downloads folder.

DOM

<a data-cy="download-png" href="logo.png" download>logo.png</a>

Test

cy.get('[data-cy="download-png"]').click()

Chrome:

(download) C:\ ... \cypress\downloads\logo.png

Firefox:

(download) C:\downloads\logo.png

Do I need special configuration or plugin for Firefox?

Upvotes: 3

Views: 367

Answers (1)

Fody
Fody

Reputation: 31944

This is a known issue, see Cypress is not downloading files in the cypress/downloads folder on Firefox.

If you upgrade to Cypress v10.6.0, it should be resolved.

Upvotes: 2

Related Questions