From cccc2ac4bceb62afe5aad7a560b3da6c3f7140a5 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Tue, 24 Aug 2021 19:48:28 -0700 Subject: [PATCH] chore: fix docs --- docs/src/api/class-keyboard.md | 2 +- docs/src/test-reporter-api/class-reporter.md | 4 ++-- types/testReporter.d.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/api/class-keyboard.md b/docs/src/api/class-keyboard.md index f03afddaf7..d2284500f7 100644 --- a/docs/src/api/class-keyboard.md +++ b/docs/src/api/class-keyboard.md @@ -326,7 +326,7 @@ page.keyboard.type("World", delay=100) # types slower, like a user ```csharp await page.Keyboard.TypeAsync("Hello"); // types instantly -await page.Keyboard.TypeAsync("World"); // types slower, like a user +await page.Keyboard.TypeAsync("World", new KeyboardTypeOptions { Delay = 100 }); // types slower, like a user ``` :::note diff --git a/docs/src/test-reporter-api/class-reporter.md b/docs/src/test-reporter-api/class-reporter.md index c2ac634148..3587e5f515 100644 --- a/docs/src/test-reporter-api/class-reporter.md +++ b/docs/src/test-reporter-api/class-reporter.md @@ -178,7 +178,7 @@ Test that has been started. Result of the test run, this object gets populated while the test runs. ### param: Reporter.onStepBegin.step -- `result` <[TestStep]> +- `step` <[TestStep]> Test step instance. @@ -197,7 +197,7 @@ Test that has been finished. Result of the test run. ### param: Reporter.onStepEnd.step -- `result` <[TestStep]> +- `step` <[TestStep]> Test step instance. diff --git a/types/testReporter.d.ts b/types/testReporter.d.ts index cae0ed58bd..4e5a61a77e 100644 --- a/types/testReporter.d.ts +++ b/types/testReporter.d.ts @@ -394,14 +394,14 @@ export interface Reporter { * Called when a test step started in the worker process. * @param test Test that has been started. * @param result Result of the test run, this object gets populated while the test runs. - * @param result Test step instance. + * @param step Test step instance. */ onStepBegin?(test: TestCase, result: TestResult, step: TestStep): void; /** * Called when a test step finished in the worker process. * @param test Test that has been finished. * @param result Result of the test run. - * @param result Test step instance. + * @param step Test step instance. */ onStepEnd?(test: TestCase, result: TestResult, step: TestStep): void; /**