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

Fixes #1047: preventDefault() #1122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sadiqkhoja
Copy link
Contributor

@sadiqkhoja sadiqkhoja commented Jan 8, 2025

Closes #1047

Builds are failing on the master branch as well, this fix is necessary now.

What has been done to verify that this works as intended?

All tests are passing and no file is created on the file system.

Why is this the best possible solution? Were any other approaches considered?

This solves the problem, but I am open to hearing other options. @matthew-white mentioned something about preventDefault in tests in the issue, I don't where to set that.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

No

Does this change require updates to user documentation? If so, please file an issue here and include the link below.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@sadiqkhoja sadiqkhoja marked this pull request as ready for review January 8, 2025 19:35
@sadiqkhoja sadiqkhoja force-pushed the fixes/1047-dont-download-file-in-test branch 2 times, most recently from dfb7ad6 to 124cbed Compare January 10, 2025 17:06
 so we don't download the actual file
@sadiqkhoja sadiqkhoja force-pushed the fixes/1047-dont-download-file-in-test branch from 124cbed to f09eaed Compare January 10, 2025 17:09
@sadiqkhoja sadiqkhoja changed the title Fixes #1047: call setFilename instead of triggering click Fixes #1047: preventDefault() Jan 10, 2025
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

Successfully merging this pull request may close these issues.

Tests create a new "trees 20241231012345.csv" file in "~/Downloads"
1 participant