chore: add console icon titles (#27416)

Fixes https://github.com/microsoft/playwright/issues/27411
This commit is contained in:
Pavel Feldman 2023-10-03 15:52:37 -07:00 committed by GitHub
parent c226d97b87
commit 5a7b405bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ export const ConsoleTab: React.FunctionComponent<{
const timestamp = msToString(entry.timestamp - boundaries.minimum);
const timestampElement = <span className='console-time'>{timestamp}</span>;
const errorSuffix = entry.isError ? ' status-error' : entry.isWarning ? ' status-warning' : ' status-none';
const statusElement = entry.browserMessage || entry.browserError ? <span className={'codicon codicon-browser' + errorSuffix}></span> : <span className={'codicon codicon-file' + errorSuffix}></span>;
const statusElement = entry.browserMessage || entry.browserError ? <span className={'codicon codicon-browser' + errorSuffix} title='Browser message'></span> : <span className={'codicon codicon-file' + errorSuffix} title='Runner message'></span>;
let locationText: string | undefined;
let messageBody: JSX.Element[] | string | undefined;
let messageInnerHTML: string | undefined;