Testcafe example to assert file download
问题 I want to write a fixture to simulate the export file and make sure a file is downloaded from browser actions. any example? NA 回答1: There's not a fancy way check if the download has finished, TestCafe is somewhat limited in its ability to control the download ability in the browser. import fs from 'fs'; const fileName = 'junk.txt'; const downloadLocation = 'C:\\Wherever\\Downloads\\'; const fileDLUrlBase = 'https://example.com/downloads/'; fixture('download test fixture'); test('download test