diff --git a/packages/html-reporter/src/testErrorView.tsx b/packages/html-reporter/src/testErrorView.tsx index d7a979a9d9..751a263263 100644 --- a/packages/html-reporter/src/testErrorView.tsx +++ b/packages/html-reporter/src/testErrorView.tsx @@ -22,22 +22,6 @@ import { ImageDiffView } from '@web/shared/imageDiffView'; import { TestAttachment } from './types'; import { fixTestInstructions } from '@web/prompts'; -export const TestErrorView: React.FC<{ - error: string; - testId?: string; - context?: TestAttachment; -}> = ({ error, testId, context }) => { - return ( - - {context && ( -
- -
- )} -
- ); -}; - export const CodeSnippet = ({ code, children, testId }: React.PropsWithChildren<{ code: string; testId?: string; }>) => { const html = React.useMemo(() => ansiErrorToHtml(code), [code]); return ( @@ -48,14 +32,15 @@ export const CodeSnippet = ({ code, children, testId }: React.PropsWithChildren< ); }; -const PromptButton: React.FC<{ context: TestAttachment }> = ({ context }) => { +export const PromptButton: React.FC<{ context?: TestAttachment }> = ({ context }) => { const [copied, setCopied] = React.useState(false); return