docs: update type property description (#30516)

This commit is contained in:
Yury Semikhatsky 2024-04-24 13:10:17 -07:00 committed by GitHub
parent 9914b35c96
commit 4e086e6df8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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`].

View File

@ -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";
}