diff --git a/packages/html-reporter/src/testResultView.tsx b/packages/html-reporter/src/testResultView.tsx index c4622e7405..407795840e 100644 --- a/packages/html-reporter/src/testResultView.tsx +++ b/packages/html-reporter/src/testResultView.tsx @@ -26,7 +26,7 @@ import { AttachmentLink } from './links'; import { statusIcon } from './statusIcon'; import './testResultView.css'; -const imageDiffNames = ['expected', 'actual', 'diff']; +const imageDiffNames = ['diff', 'expected', 'actual']; export const TestResultView: React.FC<{ test: TestCase, @@ -46,9 +46,9 @@ export const TestResultView: React.FC<{ return { attachmentsMap, screenshots, videos, otherAttachments, traces }; }, [ result ]); + const diff = attachmentsMap.get('diff'); const expected = attachmentsMap.get('expected'); const actual = attachmentsMap.get('actual'); - const diff = attachmentsMap.get('diff'); const hasImages = [actual?.contentType, expected?.contentType, diff?.contentType].some(v => v && /^image\//i.test(v)); return