Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to change download location from cypress/downloads to Fixtures folder?? #3

Open
mkhizar53 opened this issue Aug 25, 2021 · 2 comments

Comments

@mkhizar53
Copy link

Hi I'm downloading a file from a site and uploading the same downloaded file in the same test run. But In order to upload the file, it asks me to have the file in the fixture folder.

Is there a way for me to change the default download location to fixtures and if that's not possible, how can I upload a file from my cypress/downloads folder. When I use the filepath from there, it gives me the following error:

"A fixture file could not be found at any of the following paths:

apps/mosaic-e2e/src/fixtures/.../cypress/downloads/test-non-date-based.json
apps/mosaic-e2e/src/fixtures/.../cypress/downloads/test-non-date-based.json{{extension}}

Cypress looked for these file extensions at the provided path:

.json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip

Provide a path to an existing fixture file."

Is there a way to move a file from downloads to fixtures as the test runs?? < one other way i was thinking

@bhanuprakash026
Copy link

Same Scenario I want to do this...

@harisilpa-davanam
Copy link

Facing the same issue. Is there any workaround or alternative identified?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants