From 06de29af5612608e77cea70ccdbfab4ef71fb744 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:46:35 -0600 Subject: [PATCH] feat(playwright/types): add jsdoc comment describing on-first-failure mode --- packages/playwright/types/test.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 1744bff635..6ad3e0fb8a 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -5586,6 +5586,7 @@ export interface PlaywrightWorkerOptions { * - `'retain-on-failure'`: Record trace for each test, but remove all traces from successful test runs. * - `'on-first-retry'`: Record trace only when retrying a test for the first time. * - `'on-all-retries'`: Record traces only when retrying for all retries. + * - `'on-first-failure'`: Record trace only when the test fails for the first time. * * For more control, pass an object that specifies `mode` and trace features to enable. *