Skip to content

Commit

Permalink
cherry-pick(#27006): chore: document new onEnd params
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Sep 12, 2023
1 parent 7c83865 commit 5f78f27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/src/test-reporter-api/class-reporter.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ Called after all tests have been run, or testing has been interrupted. Note that
### param: Reporter.onEnd.result
* since: v1.10
- `result` <[Object]>
- `status` <[FullStatus]<"passed"|"failed"|"timedout"|"interrupted">>
- `startTime` <[Date]>
- `duration` <[int]>
- `status` <[FullStatus]<"passed"|"failed"|"timedout"|"interrupted">> Test run status.
- `startTime` <[Date]> Test run start wall time.
- `duration` <[int]> Test run duration in milliseconds.

Result of the full test run.
Result of the full test run, `status` can be one of:
* `'passed'` - Everything went as expected.
* `'failed'` - Any test has failed.
* `'timedout'` - The [`property: TestConfig.globalTimeout`] has been reached.
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright/types/testReporter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export interface Reporter {
/**
* Called after all tests have been run, or testing has been interrupted. Note that this method may return a [Promise]
* and Playwright Test will await it.
* @param result Result of the full test run.
* @param result Result of the full test run, `status` can be one of:
* - `'passed'` - Everything went as expected.
* - `'failed'` - Any test has failed.
* - `'timedout'` - The
Expand Down

0 comments on commit 5f78f27

Please sign in to comment.