diff --git a/packages/html-reporter/src/testCaseView.tsx b/packages/html-reporter/src/testCaseView.tsx index a038f44785..26cc4d1b73 100644 --- a/packages/html-reporter/src/testCaseView.tsx +++ b/packages/html-reporter/src/testCaseView.tsx @@ -74,9 +74,8 @@ function renderAnnotationDescription(description: string) { function renderAnnotationLink(url: string) { try { - if (['http:', 'https:'].includes(new URL(url).protocol)) { + if (['http:', 'https:'].includes(new URL(url).protocol)) return {url}; - } } catch {} return url; }