From e8d08e8d1e1c37019aba55de1b75c0b000b16828 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 26 Sep 2024 09:41:38 -0700 Subject: [PATCH] docs: more prominent note on tags being read-only (#32836) Reference https://github.com/microsoft/playwright/issues/32828 --- docs/src/test-api/class-testinfo.md | 4 +++- packages/playwright/types/test.d.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/src/test-api/class-testinfo.md b/docs/src/test-api/class-testinfo.md index 38c706adf7..93cbc93b75 100644 --- a/docs/src/test-api/class-testinfo.md +++ b/docs/src/test-api/class-testinfo.md @@ -216,7 +216,9 @@ Test function as passed to `test(title, testFunction)`. Tags that apply to the test. Learn more about [tags](../test-annotations.md#tag-tests). -Note that any changes made to this list while the test is running will not be visible to test reporters. +:::note +Any changes made to this list while the test is running will not be visible to test reporters. +::: ## property: TestInfo.testId * since: v1.32 diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 1649de795d..400d7cbcf3 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -8282,7 +8282,8 @@ export interface TestInfo { /** * Tags that apply to the test. Learn more about [tags](https://playwright.dev/docs/test-annotations#tag-tests). * - * Note that any changes made to this list while the test is running will not be visible to test reporters. + * **NOTE** Any changes made to this list while the test is running will not be visible to test reporters. + * */ tags: Array;