How can I test for a file download in Laravel Dusk?

Viewed 297

In Laravel Dusk, I want to click a button on a web page that runs Javascript that triggers a download of a PDF file. How can I run a "click" on a button and then assert that a file is getting downloaded?

1 Answers
Related