diff --git a/packages/html-reporter/src/testCaseView.tsx b/packages/html-reporter/src/testCaseView.tsx index 8637622155..cc6b680c6a 100644 --- a/packages/html-reporter/src/testCaseView.tsx +++ b/packages/html-reporter/src/testCaseView.tsx @@ -14,7 +14,7 @@ limitations under the License. */ -import type { TestCase, TestCaseAnnotation } from './types'; +import type { TestCase, TestCaseAnnotation, TestCaseSummary } from './types'; import * as React from 'react'; import { TabbedPane } from './tabbedPane'; import { AutoChip } from './chip'; @@ -46,7 +46,7 @@ export const TestCaseView: React.FC<{ React.useEffect(() => { document.title = test?.title ? `| ${test.title}` : 'Playwright Test Report'; - setSvgFavicon(test?.outcome); + test?.outcome ? setFavicon({ outcome: test.outcome }) : setFavicon('default'); }, [test?.outcome, test?.title]); return