improvement to export correct file content in html reporter
This commit is contained in:
parent
98795fda81
commit
f7437145af
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user