feat(reporting): Add hyperlink rendering for URL
fields in HTML
reports
#31014
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, I am the contributor of the recently merged #30665 pull request. Following the merge, @pavelfeldman , the maintainer, suggested further implementation of the "rendering it in the HTML report and other reports" feature, which I have now added. I am requesting a review!
Description:
This pull request enhances the functionality introduced in previous updates by rendering URLs as clickable hyperlinks in HTML and other reports within Playwright tests. It builds on the existing capability to include URL fields in annotations by ensuring these URLs are interactive, thereby improving the accessibility and user experience of test reports.
Motivation:
Previous updates allowed URLs to be treated as hyperlinks within the
description
field, but with the addition of theurl
field, we can now more clearly and effectively display URLs in annotations. This change significantly enhances the usability and navigability of the reports, allowing users to interact directly with and easily navigate to related resources.Changes:
Implemented hyperlink rendering in the HTML reporter and other report generators.
Expected Outcome:
With this update, URLs included in test annotations are now rendered as clickable hyperlinks. This change not only improves the interactivity of reports but also makes it easier for users to access related online resources directly from within the reports. Enhancing user engagement and providing direct access to necessary resources aligns with our goals of making test reports more informative and functional.
References:
Continues to address #30665 - "feat(test): add URL field to annotations for hyperlink display"