|
|
|
|
|
by yebyen
3271 days ago
|
|
Seconded, I did not try all of the other ways you had to go through, fortunately I was already using Selenium with chromedriver in my testing and I found this great set of examples for testing file downloads: [1] https://collectiveidea.com/blog/archives/2012/01/27/testing-... [2] https://forum.shakacode.com/t/how-to-test-file-downloads-wit... It looks like the second linked post here derives from the first, but both are very similar. My tests don't actually download the files anymore (they are PDFs, and we opted to open them in a new tab instead, which is unfortunately harder to confirm with a test) Add this to the list of useful wrappers for things I thought would be difficult to test as a regression spec, but ultimately weren't hard at all, like email delivery with email-spec/email-spec [3] [3] https://github.com/email-spec/email-spec |
|