Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: document new onEnd params (#27006)
Pavel Feldman91478ea31632
diff --git a/docs/src/test-reporter-api/class-reporter.md b/docs/src/test-reporter-api/class-reporter.mdindex d2c8b111b3..d9f4be78c7 100644--- a/docs/src/test-reporter-api/class-reporter.md+++ b/docs/src/test-reporter-api/class-reporter.md@@ -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.diff --git a/packages/playwright/types/testReporter.d.ts b/packages/playwright/types/testReporter.d.tsindex 9f18d3114e..2ace294ba7 100644--- a/packages/playwright/types/testReporter.d.ts+++ b/packages/playwright/types/testReporter.d.ts@@ -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