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:
parent
b5e36583f6
commit
c38d9ffb54
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
5
packages/playwright/types/test.d.ts
vendored
5
packages/playwright/types/test.d.ts
vendored
|
|
@ -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;
|
||||
}>;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue