diff --git a/packages/html-reporter/src/testErrorView.tsx b/packages/html-reporter/src/testErrorView.tsx
index 722917c191..881c420c22 100644
--- a/packages/html-reporter/src/testErrorView.tsx
+++ b/packages/html-reporter/src/testErrorView.tsx
@@ -19,11 +19,12 @@ import * as React from 'react';
import './testErrorView.css';
import type { ImageDiff } from '@web/shared/imageDiffView';
import { ImageDiffView } from '@web/shared/imageDiffView';
+import { TestAttachment } from './types';
export const TestErrorView: React.FC<{
error: string;
testId?: string;
- prompt?: string;
+ prompt?: TestAttachment;
}> = ({ error, testId, prompt }) => {
return (
@@ -46,13 +47,14 @@ export const CodeSnippet = ({ code, children, testId }: React.PropsWithChildren<
);
};
-const PromptButton: React.FC<{ prompt: string }> = ({ prompt }) => {
+const PromptButton: React.FC<{ prompt: TestAttachment }> = ({ prompt }) => {
const [copied, setCopied] = React.useState(false);
return