feat(html-reporter): add file name copy button
This commit is contained in:
parent
b23edf5137
commit
406e4a3cf8
|
|
@ -47,6 +47,7 @@
|
|||
flex: none;
|
||||
align-items: center;
|
||||
padding: 0 8px 8px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.test-case-path {
|
||||
|
|
|
|||
|
|
@ -50,7 +50,11 @@ export const TestCaseView: React.FC<{
|
|||
{test && <div className='test-case-path'>{test.path.join(' › ')}</div>}
|
||||
{test && <div className='test-case-title'>{test?.title}</div>}
|
||||
{test && <div className='hbox'>
|
||||
<div className='test-case-location'>{test.location.file}:{test.location.line}</div>
|
||||
<div className='test-case-location'>
|
||||
<CopyToClipboardContainer value={`${test?.location.file}:${test?.location.line}`}>
|
||||
{test.location.file}:{test.location.line}
|
||||
</CopyToClipboardContainer>
|
||||
</div>
|
||||
<div style={{ flex: 'auto' }}></div>
|
||||
<div className='test-case-duration'>{msToString(test.duration)}</div>
|
||||
</div>}
|
||||
|
|
|
|||
Loading…
Reference in a new issue