diff --git a/packages/html-reporter/src/testFileView.css b/packages/html-reporter/src/testFileView.css index 72858846bb..a899d7cb3d 100644 --- a/packages/html-reporter/src/testFileView.css +++ b/packages/html-reporter/src/testFileView.css @@ -14,18 +14,30 @@ limitations under the License. */ +.hbox.static { + position: static; +} + .test-file-test { line-height: 32px; - align-items: center; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; + position: relative; } .test-file-test:hover { background-color: var(--color-canvas-subtle); } +.test-file-link::before { + content: ''; + display: block; + inset: 0; + position: absolute; + z-index: 0; +} + .test-file-title { font-weight: 600; font-size: 16px; @@ -45,14 +57,12 @@ text-overflow: ellipsis; overflow: hidden; color: var(--color-fg-subtle); -} - -.test-file-path-link { margin-right: 10px; } .test-file-badge { flex: none; + position: relative; } .test-file-badge svg { @@ -69,4 +79,10 @@ .test-file-test-status-icon { flex: none; -} \ No newline at end of file +} + +.label { + cursor: pointer; + margin: 6px 0 0 6px; + position: relative; +} diff --git a/packages/html-reporter/src/testFileView.tsx b/packages/html-reporter/src/testFileView.tsx index bd402a74de..bd3b63b646 100644 --- a/packages/html-reporter/src/testFileView.tsx +++ b/packages/html-reporter/src/testFileView.tsx @@ -41,13 +41,13 @@ export const TestFileView: React.FC}> {file.tests.filter(t => filter.matches(t)).map(test =>
-
-
+
+
{statusIcon(test.outcome)} - + {[...test.path, test.title].join(' › ')} {report.projectNames.length > 1 && !!test.projectName && @@ -58,9 +58,7 @@ export const TestFileView: React.FC{msToString(test.duration)}
- - {test.location.file}:{test.location.line} - + {test.location.file}:{test.location.line} {imageDiffBadge(test)} {videoBadge(test)} {traceBadge(test)} @@ -102,7 +100,7 @@ const LabelsClickView: React.FC 0 ? ( <> {labels.map(label => ( - onClickHandle(e, label)}> + onClickHandle(e, label)}> {label.slice(1)} ))}