Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: update `type` property description (#30516)

Yury Semikhatsky4e086e6df84d
diff --git a/docs/src/test-reporter-api/class-suite.md b/docs/src/test-reporter-api/class-suite.md
index f9661dc3fd..1d458c842b 100644
--- a/docs/src/test-reporter-api/class-suite.md
+++ b/docs/src/test-reporter-api/class-suite.md
@@ -30,7 +30,7 @@ Returns the list of all test cases in this suite and its descendants, as opposit
* since: v1.44
- type: <[Array]<[TestCase]|[Suite]>>
-Test cases and suites defined directly in this suite. The elements are returned in their declaration order. You can discriminate between different entry types using [`property: TestCase.type`] and [`property: Suite.type`].
+Test cases and suites defined directly in this suite. The elements are returned in their declaration order. You can differentiate between various entry types by using [`property: TestCase.type`] and [`property: Suite.type`].
## property: Suite.location
* since: v1.10
diff --git a/docs/src/test-reporter-api/class-testcase.md b/docs/src/test-reporter-api/class-testcase.md
index a601b284cd..82ab6ca521 100644
--- a/docs/src/test-reporter-api/class-testcase.md
+++ b/docs/src/test-reporter-api/class-testcase.md
@@ -112,4 +112,4 @@ Returns a list of titles from the root down to this test.
* since: v1.44
- returns: <[TestCaseType]<"test">>
-Returns type of the test.
+Returns "test". Useful for detecting test cases in [`method: Suite.entries`].
diff --git a/packages/playwright/types/testReporter.d.ts b/packages/playwright/types/testReporter.d.ts
index 2b61ffaeea..694ba65961 100644
--- a/packages/playwright/types/testReporter.d.ts
+++ b/packages/playwright/types/testReporter.d.ts
@@ -578,7 +578,7 @@ export interface Suite {
/**
* Test cases and suites defined directly in this suite. The elements are returned in their declaration order. You can
- * discriminate between different entry types using
+ * differentiate between various entry types by using
* [testCase.type](https://playwright.dev/docs/api/class-testcase#test-case-type) and
* [suite.type](https://playwright.dev/docs/api/class-suite#suite-type).
*/
@@ -770,7 +770,8 @@ export interface TestCase {
title: string;
/**
- * Returns type of the test.
+ * Returns "test". Useful for detecting test cases in
+ * [suite.entries()](https://playwright.dev/docs/api/class-suite#suite-entries).
*/
type: "test";
}