feat(test): Add 'url' field to annotations

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
This commit is contained in:
osohyun0224 2024-05-05 20:41:55 +09:00
parent b5e36583f6
commit c38d9ffb54
2 changed files with 6 additions and 1 deletions

View file

@ -35,7 +35,7 @@ export type FixturesWithLocation = {
fixtures: Fixtures;
location: Location;
};
export type Annotation = { type: string, description?: string };
export type Annotation = { type: string, description?: string, url?: string };
export const defaultTimeout = 30000;

View file

@ -7998,6 +7998,11 @@ export interface TestInfo {
* Optional description.
*/
description?: string;
/**
* Optional URL to provide additional context or link to an issue tracker.
*/
url?: string;
}>;
/**