Skip to content

Commit

Permalink
Fixes #1047: call setFilename instead of triggering click
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqkhoja committed Jan 10, 2025
1 parent 454ade2 commit 124cbed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/components/entity/upload/data-template.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ describe('EntityUploadDataTemplate', () => {
const clock = sinon.useFakeTimers(Date.parse('2024-12-31T01:23:45'));
testData.extendedDatasets.createPast(1);
const a = mountComponent().get('a');
// We don't want to actually download the file. See CF#1047.
// Additionally, since Chrome Headless 131.0.0.0, this test has started
// failing.
a.element.addEventListener('click', (e) => { e.preventDefault(); });
await a.trigger('click');
a.attributes().download.should.equal('trees 20241231012345.csv');
clock.tick(1000);
Expand Down

0 comments on commit 124cbed

Please sign in to comment.