{ onClick?.(); setExpanded(!expanded); }} >
{title}
diff --git a/src/web/htmlReport/htmlReport.css b/src/web/htmlReport/htmlReport.css
index 3afea0ad45..adea104852 100644
--- a/src/web/htmlReport/htmlReport.css
+++ b/src/web/htmlReport/htmlReport.css
@@ -51,8 +51,9 @@
color: white;
padding: 5px;
overflow: auto;
- margin: 20px 0;
+ margin: 20px;
flex: none;
+ box-shadow: var(--box-shadow);
}
.status-icon {
@@ -164,9 +165,6 @@
display: flex;
align-items: center;
padding: 0 10px 10px;
- color: var(--blue);
- text-decoration: underline;
- cursor: pointer;
}
.test-details-column {
@@ -183,3 +181,24 @@
overflow: hidden;
text-overflow: ellipsis;
}
+
+.stats {
+ background-color: gray;
+ border-radius: 2px;
+ min-width: 10px;
+ color: white;
+ margin: 0 2px;
+ padding: 0 2px;
+}
+
+.stats.expected {
+ background-color: var(--green);
+}
+
+.stats.unexpected {
+ background-color: var(--red);
+}
+
+.stats.flaky {
+ background-color: var(--yellow);
+}
diff --git a/src/web/htmlReport/htmlReport.tsx b/src/web/htmlReport/htmlReport.tsx
index 5dcab9d023..b4f5ccc953 100644
--- a/src/web/htmlReport/htmlReport.tsx
+++ b/src/web/htmlReport/htmlReport.tsx
@@ -21,7 +21,7 @@ import { SplitView } from '../components/splitView';
import { TreeItem } from '../components/treeItem';
import { TabbedPane } from '../traceViewer/ui/tabbedPane';
import { msToString } from '../uiUtils';
-import type { ProjectTreeItem, SuiteTreeItem, TestCase, TestResult, TestStep, TestTreeItem, Location, TestFile } from '../../test/reporters/html';
+import type { ProjectTreeItem, SuiteTreeItem, TestCase, TestResult, TestStep, TestTreeItem, Location, TestFile, Stats } from '../../test/reporters/html';
type Filter = 'Failing' | 'All';
@@ -60,7 +60,7 @@ export const Report: React.FC = () => {
}}>{item}