diff --git a/packages/html-reporter/src/testFilesView.tsx b/packages/html-reporter/src/testFilesView.tsx
index 710beaf3ad0ca..51a3780f77664 100644
--- a/packages/html-reporter/src/testFilesView.tsx
+++ b/packages/html-reporter/src/testFilesView.tsx
@@ -45,12 +45,12 @@ export const TestFilesView: React.FC<{
return <>
{projectNames.length === 1 && !!projectNames[0] &&
Project: {projectNames[0]}
}
- {!filter.empty() &&
Filtered: {filteredStats.total}
}
+ {!filter.empty() &&
Filtered: {filteredStats.total} {!!filteredStats.total && ('(' + msToString(filteredStats.duration) + ')')}
}
{report ? new Date(report.startTime).toLocaleString() : ''}
-
Total time: {msToString(filteredStats.duration)}
+
Total time: {msToString(report?.duration ?? 0)}
- {report && report.errors.length &&