From 9c8d0822d609878d8e9b1b14b4fec95e5119020f Mon Sep 17 00:00:00 2001 From: Alex Neo Date: Mon, 13 Mar 2023 23:23:17 +0300 Subject: [PATCH] fix(html-reporter): annotations.size rendered 0 on UI (#21635) Co-authored-by: Max Schmitt --- packages/html-reporter/src/testCaseView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/html-reporter/src/testCaseView.tsx b/packages/html-reporter/src/testCaseView.tsx index 4a01d6f39c..d8e164f979 100644 --- a/packages/html-reporter/src/testCaseView.tsx +++ b/packages/html-reporter/src/testCaseView.tsx @@ -44,7 +44,7 @@ export const TestCaseView: React.FC<{ {test &&
{test?.title}
} {test &&
{test.location.file}:{test.location.line}
} {test && !!test.projectName && } - {annotations.size && + {annotations.size > 0 && {[...annotations].map(annotation => )} } {test &&