{!!errors.length &&
{errors.map((error, index) => {
@@ -92,14 +99,14 @@ export const TestResultView: React.FC<{
}
{diffs.map((diff, index) =>
-
-
+
+
)}
- {!!screenshots.length &&
+ {!!screenshots.length &&
{screenshots.map((a, i) => {
return ;
})}
- }
+ }
- {!!traces.length &&
+ {!!traces.length &&
{}
}
- {!!videos.length &&
+ {!!videos.length &&
{videos.map((a, i) =>
)}
}
- {!!(otherAttachments.size + htmls.length) && id.startsWith('attachment-')}>
- {[...htmls].map((a, i) => (
-
-
- )
- )}
+ {!!otherAttachments.size &&
{[...otherAttachments].map((a, i) =>
-
+
)}
}
@@ -176,7 +178,7 @@ const StepTreeItem: React.FC<{
const attachmentName = step.title.match(/^attach "(.*)"$/)?.[1];
return
{msToString(step.duration)}
- {attachmentName && { evt.stopPropagation(); }}>{icons.attachment()}}
+ {attachmentName && { evt.stopPropagation(); }}>{icons.attachment()}}
{statusIcon(step.error || step.duration === -1 ? 'failed' : 'passed')}
{step.title}
{step.count > 1 && <> ✕ {step.count}>}