From 98e2f40bb0044a0caae845f134ac32d5b58800e1 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 2 Dec 2021 14:24:43 -0800 Subject: [PATCH] docs: replace TestCase.suite with TestCase.parent (#10687) It is there by mistake. --- docs/src/test-reporter-api/class-testcase.md | 10 +++++----- packages/playwright-test/types/testReporter.d.ts | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/src/test-reporter-api/class-testcase.md b/docs/src/test-reporter-api/class-testcase.md index beaeee4c9a..0ca5a2dbba 100644 --- a/docs/src/test-reporter-api/class-testcase.md +++ b/docs/src/test-reporter-api/class-testcase.md @@ -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]> diff --git a/packages/playwright-test/types/testReporter.d.ts b/packages/playwright-test/types/testReporter.d.ts index f57550d361..e0133e3984 100644 --- a/packages/playwright-test/types/testReporter.d.ts +++ b/packages/playwright-test/types/testReporter.d.ts @@ -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)