mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
parent
819287cc0e
commit
f3b35b2bbd
@ -106,7 +106,11 @@
|
|||||||
color: var(--blue);
|
color: var(--blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-entry .codicon-error {
|
.action-entry .codicon {
|
||||||
|
padding: 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-entry .codicon-error, .action-entry .codicon-issues {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ export const ActionList: React.FC<ActionListProps> = ({
|
|||||||
const { metadata } = action;
|
const { metadata } = action;
|
||||||
const selectedSuffix = action === selectedAction ? ' selected' : '';
|
const selectedSuffix = action === selectedAction ? ' selected' : '';
|
||||||
const highlightedSuffix = action === highlightedAction ? ' highlighted' : '';
|
const highlightedSuffix = action === highlightedAction ? ' highlighted' : '';
|
||||||
|
const error = metadata.error?.error?.message;
|
||||||
const { errors, warnings } = modelUtil.stats(action);
|
const { errors, warnings } = modelUtil.stats(action);
|
||||||
return <div
|
return <div
|
||||||
className={'action-entry' + selectedSuffix + highlightedSuffix}
|
className={'action-entry' + selectedSuffix + highlightedSuffix}
|
||||||
@ -92,6 +93,7 @@ export const ActionList: React.FC<ActionListProps> = ({
|
|||||||
{!!errors && <div className='action-icon'><span className={'codicon codicon-error'}></span><span className="action-icon-value">{errors}</span></div>}
|
{!!errors && <div className='action-icon'><span className={'codicon codicon-error'}></span><span className="action-icon-value">{errors}</span></div>}
|
||||||
{!!warnings && <div className='action-icon'><span className={'codicon codicon-warning'}></span><span className="action-icon-value">{warnings}</span></div>}
|
{!!warnings && <div className='action-icon'><span className={'codicon codicon-warning'}></span><span className="action-icon-value">{warnings}</span></div>}
|
||||||
</div>
|
</div>
|
||||||
|
{error && <div className='codicon codicon-issues' title={error} />}
|
||||||
</div>;
|
</div>;
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user