We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow HTML rendering for annotation descriptions.
Maybe something like:
---- a/packages/html-reporter/src/testCaseView.tsx +++ b/packages/html-reporter/src/testCaseView.tsx @@ -69,14 +69,14 @@ function renderAnnotationDescription(description: string) { if (['http:', 'https:'].includes(new URL(description).protocol)) return <a href={description} target='_blank' rel='noopener noreferrer'>{description}</a>; } catch {} - return description; + return <span dangerouslySetInnerHTML={{ __html: description }}></span>; } function TestCaseAnnotationView({ annotation: { type, description } }: { annotation: TestCaseAnnotation }) { return ( <div className='test-case-annotation'> <span style={{ fontWeight: 'bold' }}>{type}</span> - {description && <span>: {renderAnnotationDescription(description)}</span>} + {description && <>: {renderAnnotationDescription(description)}</>} </div> ); }
here:
playwright/packages/html-reporter/src/testCaseView.tsx
Line 67 in 20a23b3
No response
Make annotation descriptions of complex format human readable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
馃殌 Feature Request
Allow HTML rendering for annotation descriptions.
Maybe something like:
here:
playwright/packages/html-reporter/src/testCaseView.tsx
Line 67 in 20a23b3
Example
No response
Motivation
Make annotation descriptions of complex format human readable.
The text was updated successfully, but these errors were encountered: