Skip to content

Commit

Permalink
trigger submit instead of click in download view test
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Jan 2, 2024
1 parent e5d2b9a commit 5a15c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SecureSend/ClientApp/src/tests/FileDownloadView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("FileDownloadView", () => {
},
],
});
await unlockButton.trigger("click");
await unlockButton.trigger("submit");
expect(wrapper.html()).toContain("test.txt");
expect(wrapper.find("a").attributes("href")).toEqual(
"/api/SecureSend/download?id=280a2753-5b23-4fbd-83fe-b080379c3ad2&fileName=test.txt"
Expand Down

0 comments on commit 5a15c7c

Please sign in to comment.