docs/src/test-reporter-api/class-testcase.md
TestCase corresponds to every [method: Test.(call)] call in a test file. When a single [method: Test.(call)] is running in multiple projects or repeated multiple times, it will have multiple TestCase objects in corresponding projects' suites.
type <[string]> Annotation type, for example 'skip' or 'fail'.description ?<[string]> Optional description.location ?<[Location]> Optional location in the source where the annotation is added.[property: TestResult.annotations] of the last test run.
Expected test status.
method: Test.skip] or [method: Test.fixme] are expected to be 'skipped'.method: Test.fail] are expected to be 'failed'.'passed'.See also [property: TestResult.status] for the actual status.
A test ID that is computed based on the test file name, test title and project name. The ID is unique within Playwright session.
Location in the source where the test is defined.
Whether the test is considered running fine. Non-ok tests fail the test run with non-zero exit code.
Testing outcome for this test. Note that outcome is not the same as [property: TestResult.status]:
'expected'.'flaky'.Suite this test case belongs to.
Contains the repeat index when running in "repeat each" mode. This mode is enabled by passing --repeat-each to the command line.
Results for each run of this test.
The maximum number of retries given to this test in the configuration.
Learn more about test retries.
The list of tags defined on the test or suite via [method: Test.(call)] or [method: Test.describe], as well as @-tokens extracted from test and suite titles.
Learn more about test tags.
The timeout given to the test. Affected by [property: TestConfig.timeout], [property: TestProject.timeout], [method: Test.setTimeout], [method: Test.slow] and [method: TestInfo.setTimeout].
Test title as passed to the [method: Test.(call)] call.
Returns a list of titles from the root down to this test.
Returns "test". Useful for detecting test cases in [method: Suite.entries].