From ae5585fbcaa53e8bb9f5870814f7d84787f5b575 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Fri, 23 Feb 2024 18:34:41 -0600 Subject: [PATCH] test(page): add on-first-failure as valid option --- tests/page/pageTestApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/page/pageTestApi.ts b/tests/page/pageTestApi.ts index 77340dfb2c..53efd741ad 100644 --- a/tests/page/pageTestApi.ts +++ b/tests/page/pageTestApi.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { Page, ViewportSize } from 'playwright-core'; import type { PageScreenshotOptions, ScreenshotMode, VideoMode } from '@playwright/test'; +import type { Page, ViewportSize } from 'playwright-core'; export { expect } from '@playwright/test'; // Page test does not guarantee an isolated context, just a new page (because Android). @@ -27,7 +27,7 @@ export type PageWorkerFixtures = { headless: boolean; channel: string; screenshot: ScreenshotMode | { mode: ScreenshotMode } & Pick; - trace: 'off' | 'on' | 'retain-on-failure' | 'on-first-retry' | 'on-all-retries' | /** deprecated */ 'retry-with-trace'; + trace: 'off' | 'on' | 'retain-on-failure' | 'on-first-retry' | 'on-first-failure' | 'on-all-retries' | /** deprecated */ 'retry-with-trace'; video: VideoMode | { mode: VideoMode, size: ViewportSize }; browserName: 'chromium' | 'firefox' | 'webkit'; browserVersion: string;