Resolved HTML Report Bug

Resolves #34085

Resolves console errors and reports are visible again.
This commit is contained in:
GingerHeadSam 2024-12-19 10:03:06 +00:00
parent a239ab3048
commit 8033d7bcae
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ function cacheSearchValues(test: TestCaseSummary & { [searchValuesSymbol]?: Sear
line: String(test.location.line),
column: String(test.location.column),
labels: test.tags.map(tag => tag.toLowerCase()),
annotations: test.annotations.map(a => a.type.toLowerCase() + '=' + a.description?.toLocaleLowerCase())
annotations: test.annotations.map(a => a?.type?.toLowerCase() + '=' + a.description?.toLocaleLowerCase())
};
test[searchValuesSymbol] = searchValues;
return searchValues;

View file

@ -46,7 +46,7 @@ export const TestCaseView: React.FC<{
}, [test]);
const visibleAnnotations = React.useMemo(() => {
return test?.annotations?.filter(annotation => !annotation.type.startsWith('_')) || [];
return test?.annotations?.filter(annotation => !annotation?.type?.startsWith('_')) || [];
}, [test?.annotations]);
return <div className='test-case-column vbox'>