Skip to content

Commit

Permalink
feat: Make report test names copy-friendly (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend authored Dec 11, 2024
1 parent dafc228 commit a76522d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/report/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export const RESULT_STYLE = css`
.result-duration {
flex: 0 0 auto;
}
.breadcrumb-arrow {
user-select: none;
}
`;

function renderBrowserInfo(browser) {
Expand Down Expand Up @@ -247,7 +250,7 @@ export function renderBrowserResults(browser, tests, options) {
return acc.push(html`
<div class="item-container">
<div class="result-test-name">
<h3>${t.name}</h3>
<h3>${t.name.split(' > ').flatMap(p => [html`<span class="breadcrumb-arrow"> ></span> `, p]).slice(1)}</h3>
${pixelsDiff}
<div class="result-duration">${renderStatusText(`${resultData.duration}ms`, status)}</div>
</div>
Expand Down

0 comments on commit a76522d

Please sign in to comment.