Skip to content

Commit a6c7d94

Browse files
authored
chore(html): display skipped icon for skipped tests (microsoft#36814)
1 parent f7f6435 commit a6c7d94

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

packages/html-reporter/src/headerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const StatsNavView: React.FC<{
9797
{!!stats.flaky && statusIcon('flaky')} Flaky <span className='d-inline counter'>{stats.flaky}</span>
9898
</Link>
9999
<Link className='subnav-item' click={filterWithQuery(q, 's:skipped', false)} ctrlClick={filterWithQuery(q, 's:skipped', true)}>
100-
Skipped <span className='d-inline counter'>{stats.skipped}</span>
100+
{!!stats.skipped && statusIcon('skipped')} Skipped <span className='d-inline counter'>{stats.skipped}</span>
101101
</Link>
102102
</nav>;
103103
};

packages/html-reporter/src/icons.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ export const clock = () => {
6565
</svg>;
6666
};
6767

68+
export const skip = () => {
69+
return <svg aria-hidden='true' viewBox='0 0 16 16' width='16' height='16' data-view-component='true' className='octicon color-fg-muted'>
70+
<path d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z'></path>
71+
</svg>;
72+
};
73+
6874
export const blank = () => {
6975
return <svg className='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'></svg>;
7076
};

packages/html-reporter/src/statusIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ export function statusIcon(status: 'failed' | 'timedOut' | 'skipped' | 'passed'
3232
return icons.warning();
3333
case 'skipped':
3434
case 'interrupted':
35-
return icons.blank();
35+
return icons.skip();
3636
}
3737
}

0 commit comments

Comments
 (0)