diff --git a/docs/src/test-api/class-testoptions.md b/docs/src/test-api/class-testoptions.md index e8cbfa373c..6a4dfd55c7 100644 --- a/docs/src/test-api/class-testoptions.md +++ b/docs/src/test-api/class-testoptions.md @@ -559,7 +559,7 @@ Whether to record trace for each test. Defaults to `'off'`. * `'on-first-retry'`: Record trace only when retrying a test for the first time. * `'on-all-retries'`: Record trace only when retrying a test. * `'retain-on-failure'`: Record trace for each test. When test run passes, remove the recorded trace. -* `'retain-on-first-failure'`: Record trace for the first run of each test, but not for retires. When test run passes, remove the recorded trace. +* `'retain-on-first-failure'`: Record trace for the first run of each test, but not for retries. When test run passes, remove the recorded trace. For more control, pass an object that specifies `mode` and trace features to enable. diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index e1299272a8..a7c5c8a6a4 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -5075,7 +5075,7 @@ export interface PlaywrightWorkerOptions { * - `'on-first-retry'`: Record trace only when retrying a test for the first time. * - `'on-all-retries'`: Record trace only when retrying a test. * - `'retain-on-failure'`: Record trace for each test. When test run passes, remove the recorded trace. - * - `'retain-on-first-failure'`: Record trace for the first run of each test, but not for retires. When test run + * - `'retain-on-first-failure'`: Record trace for the first run of each test, but not for retries. When test run * passes, remove the recorded trace. * * For more control, pass an object that specifies `mode` and trace features to enable.