fix(html-reporter): annotations.size rendered 0 on UI (#21635)

Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Alex Neo 2023-03-13 23:23:17 +03:00 committed by GitHub
parent 8e7ec88462
commit 9c8d0822d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ export const TestCaseView: React.FC<{
{test && <div className='test-case-title'>{test?.title}</div>}
{test && <div className='test-case-location'>{test.location.file}:{test.location.line}</div>}
{test && !!test.projectName && <ProjectLink projectNames={projectNames} projectName={test.projectName}></ProjectLink>}
{annotations.size && <AutoChip header='Annotations'>
{annotations.size > 0 && <AutoChip header='Annotations'>
{[...annotations].map(annotation => <TestCaseAnnotationView type={annotation[0]} descriptions={annotation[1]} />)}
</AutoChip>}
{test && <TabbedPane tabs={