question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for changing path to the downloads folder in cypress configuration

See original GitHub issue

Hello,

could you add to the configuration something like:

downloadFolder: cypress/download

Normally it’s downloaded to the /Users/username/Downloads/fileName.example but I want to make it more elastic for other people which after running the tests, doesn’t have to change path to the downloads.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:27 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
gowrishyadalamcommented, May 22, 2020

@ris314, I changed the download folder as u suggested in the previous comment, that code works fine with chrome browser, but I am getting an error while I am running test cases in electron browser Below is error response

Cannot set property 'download' of undefined
TypeError: Cannot set property 'download' of `undefined`

7reactions
natejchocommented, Aug 7, 2019

This issue is not a duplicate, the referenced ticket above focusses on the download dialogue, and only mentions changing the download location.

Still having issue in changing the default location

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Cypress Documentation
Path to folder where files downloaded during a test are saved. fileServerFolder, root project folder, Path to folder where application files will attempt...
Read more >
Configurations in Cypress and How to Disable Default ...
What are the default Configurations for folder/files provided by Cypress? ; supportFile, cypress/support/index.js, This configuration specifies ...
Read more >
Issue handling file download from cypress - Stack Overflow
I solved it with the index.js file in the plugins folder by doing the ... You can change the download path in your...
Read more >
Test file download in Cypress | BrowserStack Docs
In Cypress, you can download a file from a web app using the cypress-downloadfile NPM package. The downloaded file is available in the...
Read more >
How to download a file in cypress - TestersDock
Cypress will automatically create Download folder under fixtures, if it is not there previously. cy.readFile('cypress/fixtures/Download/test.txt ...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found