From fc202cd2885f643aa04fdb95f8549f62de8eeeec Mon Sep 17 00:00:00 2001 From: Lukas Bockstaller Date: Mon, 4 Mar 2024 14:51:21 +0100 Subject: [PATCH] fix: typing error --- packages/playwright/src/worker/testInfo.ts | 2 +- packages/playwright/types/test.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/playwright/src/worker/testInfo.ts b/packages/playwright/src/worker/testInfo.ts index 175fceee73..244d599d51 100644 --- a/packages/playwright/src/worker/testInfo.ts +++ b/packages/playwright/src/worker/testInfo.ts @@ -81,7 +81,7 @@ export class TestInfoImpl implements TestInfo { readonly titlePath: string[]; readonly file: string; readonly line: number; - readonly tags: string[]|undefined; + readonly tags: string[]; readonly column: number; readonly fn: Function; expectedStatus: TestStatus; diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 1e610baf53..a7d3d265c7 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -2312,6 +2312,11 @@ export interface TestInfo { */ status?: "passed"|"failed"|"timedOut"|"skipped"|"interrupted"; + /** + * Tags that apply to the tests. + */ + tags: string[]; + /** * Test id matching the test case id in the reporter API. */