Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: make html report image attachment clickable (#26978)

Max Schmitt54f36bee935b
diff --git a/packages/html-reporter/src/testResultView.tsx b/packages/html-reporter/src/testResultView.tsx
index 85d76b3c12..5d31c8ae37 100644
--- a/packages/html-reporter/src/testResultView.tsx
+++ b/packages/html-reporter/src/testResultView.tsx
@@ -109,7 +109,9 @@ export const TestResultView: React.FC<{
{!!screenshots.length && <AutoChip header='Screenshots'>
{screenshots.map((a, i) => {
return <div key={`screenshot-${i}`}>
- <img src={a.path} />
+ <a href={a.path}>
+ <img src={a.path} />
+ </a>
<AttachmentLink attachment={a}></AttachmentLink>
</div>;
})}