improvement to export correct file content in html reporter

This commit is contained in:
Gabriel Porfirio 2023-02-15 17:21:58 -03:00
parent 98795fda81
commit f7437145af

View File

@ -135,7 +135,7 @@ class Page {
await expect(download).toBeTruthy();
const filePath = await download.path();
const content = await readFileSync(filePath, 'utf8');
await testInfo.attach('downloaded', { body: download });
await testInfo.attach('downloaded', { path: filePath });
return {
download,