-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(test): add URL
field to annotations for hyperlink display
#30665
feat(test): add URL
field to annotations for hyperlink display
#30665
Conversation
The 'url' field is added to the test annotations to provide a distinct way to store links alongside descriptions. This change allows annotations to include URLs for improved clarity and direct linking, which enhances test report organization. References: #30095
@microsoft-github-policy-service agree |
packages/playwright/types/test.d.ts
Outdated
/** | ||
* Optional URL to provide additional context or link to an issue tracker. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* Optional URL to provide additional context or link to an issue tracker. | |
*/ | |
/** | |
* Optional URL to provide additional context or link to an issue tracker. | |
*/ |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Added an optional 'url' field to the TestCaseAnnotation type to support hyperlink functionality within test annotations. This update allows annotations to include URLs, enhancing their utility by providing direct links to related resources or issue trackers.
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"1 failed 27306 passed, 671 skipped Merge workflow run. |
This change looks good. Could you follow up with:
|
thanks @osohyun0224 for your change, will this change also fix #30140 ? or that's a separate issue |
@saurabhdes Hello :) I checked your issue, and I think it's an issue related to the newly added feature. I kept the title and description as is and added a new url field. But the functional purpose of your issue is the same ;) I am planning to develop additional features suggested by the maintainer. |
…lay (microsoft#30665)" This reverts commit 165ecac. Third party did not follow up with changes to trace viewer, reporters, etc. before the 1.45 cutoff date.
related issue: #30095
Description:
This pull request introduces the ability to include
URL
directly within annotations in Playwright tests, enabling the URLs to be displayed as hyperlinks in test reports.Motivation:
Current annotation functionality only allows for text descriptions, which limits the ability to navigate directly to related resources or issue trackers. By integrating a URL field, we provide a more interactive and informative testing environment.
Changes:
Added an optional url field to the Annotation type to accommodate
URL
Updated type definitions and documentation to reflect the addition.
Expected Outcome:
With the addition of the url field, annotations can now directly link to URLs, which are displayed as hyperlinks in test reports. This update improves the functionality of test descriptions and enhances the accessibility of related online resources.
References:
Closes #30095 - "[Feature]: Show URL's within annotations as hyperlink"
Code Check
�toggle dropdown
I have written a test to ensure that the changes were applied correctly, and I have verified its functionality through screenshots. I examined whether the test is running as expected by capturing images of the test execution results.