Cannot see attached screenshots to html
See original GitHub issueScreenshots are added to jest-html-reporters-attach directory, seems to be in hidden text area in html but cannot see any attached to specific failed test report.
Use jest + playwright piece of code
```async handleTestEvent(event) {
    if (event.name === 'test_done' && event.test.errors.length > 0) {
        const specName = event.test.name.replace(/\W/g, '-');
        const browser = await this.global.browserName;
        const img = await this.global.page.screenshot({
            path: `e2e/output/screenshots/onFail/${browser}_${specName}.png`,
        });
        await addAttach(img, `${browser}_${specName}`);
    }
}```
I use playwright_environment
Issue Analytics
- State:
 - Created 3 years ago
 - Comments:8
 
Top Results From Across the Web
Attaching screenshots doesn't work for html reports #1443
Embed screenshot in your code; Run the test with HTML formatter; Observe results. Expected behavior. Image is attached in HTML report. Screenshots If...
Read more >Screenshot attched but not showing in outlook Error: - Help
I'm adding screenshot in outlook mail body.Mail sent successfully but image is not displaying. I guess outlook is not finding src of img...
Read more >Screenshots not attached to Extent Reports C#, DotNet CORE ...
The problem is with attaching the screenshots to the reports as I could see the screenshots being created in the directory. using System;...
Read more >How to attach screenshot in cucumber-html report - YouTube
In this video we will learn "how to attach screenshot in cucumber- html report for Failed steps" using attach () in cucumber latest...
Read more >Can't see the 'Attach Screenshot' link after disabling or ...
When you install this plugin, it will automatically disable the system bundled attach screenshot plugin, but will not automatically enable it ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You may need to pass the filename as a relative path from the report html file so that it can be located via http uri on Jenkins for examplel
https://github.com/Hazyzh/jest-html-reporters/issues/54#issuecomment-671026836
Sorry guys, I no longer use Jest. I have moved on to Playwright’s built-in test runner (and reports).