Resolved HTML Report Bug
Resolves #34085 Resolves console errors and reports are visible again.
This commit is contained in:
parent
a239ab3048
commit
8033d7bcae
|
|
@ -176,7 +176,7 @@ function cacheSearchValues(test: TestCaseSummary & { [searchValuesSymbol]?: Sear
|
||||||
line: String(test.location.line),
|
line: String(test.location.line),
|
||||||
column: String(test.location.column),
|
column: String(test.location.column),
|
||||||
labels: test.tags.map(tag => tag.toLowerCase()),
|
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;
|
test[searchValuesSymbol] = searchValues;
|
||||||
return searchValues;
|
return searchValues;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ export const TestCaseView: React.FC<{
|
||||||
}, [test]);
|
}, [test]);
|
||||||
|
|
||||||
const visibleAnnotations = React.useMemo(() => {
|
const visibleAnnotations = React.useMemo(() => {
|
||||||
return test?.annotations?.filter(annotation => !annotation.type.startsWith('_')) || [];
|
return test?.annotations?.filter(annotation => !annotation?.type?.startsWith('_')) || [];
|
||||||
}, [test?.annotations]);
|
}, [test?.annotations]);
|
||||||
|
|
||||||
return <div className='test-case-column vbox'>
|
return <div className='test-case-column vbox'>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue