Skip to content

Commit

Permalink
chore(selenium): add release data to report
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Nov 14, 2024
1 parent 8eb9b00 commit 7193ff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/selenium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,9 @@ const run = async (
filename.replace(browser, `${browser}-beta`);
}
log(task, `Downloading ${filename} ...`);
const report = await (await fetch(downloadUrl)).buffer();
await fs.writeFile(path.join(RESULTS_DIR, filename), report);
const report = await (await fetch(downloadUrl)).json();
report['release'] = bcdBrowsers[browser].releases[version];
await fs.writeFile(path.join(RESULTS_DIR, filename), JSON.stringify(report));
}
} finally {
driver.quit().catch(() => {});
Expand Down

0 comments on commit 7193ff7

Please sign in to comment.