docs: replace TestCase.suite with TestCase.parent (#10687)

It is there by mistake.
This commit is contained in:
Dmitry Gozman 2021-12-02 14:24:43 -08:00 committed by GitHub
parent 5bde171657
commit 98e2f40bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View file

@ -41,6 +41,11 @@ Testing outcome for this test. Note that outcome is not the same as [`property:
* Test that is expected to fail and actually fails is `'expected'`.
* Test that passes on a second retry is `'flaky'`.
## property: TestCase.parent
- type: <[Suite]>
Suite this test case belongs to.
## property: TestCase.results
- type: <[Array]<[TestResult]>>
@ -53,11 +58,6 @@ The maximum number of retries given to this test in the configuration.
Learn more about [test retries](./test-retries.md#retries).
## property: TestCase.suite
- type: <[Suite]>
Suite this test case belongs to.
## property: TestCase.timeout
- type: <[float]>

View file

@ -106,6 +106,9 @@ export interface Suite {
* or repeated multiple times, it will have multiple `TestCase` objects in corresponding projects' suites.
*/
export interface TestCase {
/**
* Suite this test case belongs to.
*/
parent: Suite;
/**
* Test title as passed to the [test.(call)(title, testFunction)](https://playwright.dev/docs/api/class-test#test-call)