async function waitForFileDownload(file) {
  const f = getFileDownloadPath(file);
  for (let i = 0; i < 10; i++) {
    if (fs.existsSync(f)) {
      return true;

    }
    await t.wait(500);
  }
  return fs.existsSync(f);
}
Wait for download to finish (max 5s)
@param {string} file name file
@return {Promise<boolean>}