How to Test File Downloads

Test file downloads in Endtest — trigger downloads, capture the most recent file, and assert on PDF, CSV, JSON, or image file contents.