I need to test a file download and assert that contents of the file are valid.
Tests are written in plain JS and testing tool doesn't matter. I have tried puppeteer, testcafe, cypress and even good old selenium with phantomJS but I am unable to get it done.
I am sure this is a very common use-case and someone out there in the wild should have already done it.
Point me to the right direction please.