From 65b9cba143aadbbe2138ef6f436e758363c21ca2 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 10 Mar 2022 18:26:50 -0700 Subject: [PATCH] chore: follow-up to animations default option (#12669) This is a follow-up to 42765804bcabd35d7c185006b0ce16f9c8676c18 that was landed without bots. I ran the bots manually on Linux & Mac. --- packages/playwright-core/src/server/screenshotter.ts | 2 +- packages/playwright-core/types/types.d.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/playwright-core/src/server/screenshotter.ts b/packages/playwright-core/src/server/screenshotter.ts index 40b7f96bd2..d6522dc0de 100644 --- a/packages/playwright-core/src/server/screenshotter.ts +++ b/packages/playwright-core/src/server/screenshotter.ts @@ -36,7 +36,7 @@ export type ScreenshotOptions = { type?: 'png' | 'jpeg', quality?: number, omitBackground?: boolean, - animations?: 'disabled', + animations?: 'disabled' | 'allow', mask?: { frame: Frame, selector: string}[], fullPage?: boolean, clip?: Rect, diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index ed7f24f26c..6c0b7bc049 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -8070,7 +8070,7 @@ export interface ElementHandle extends JSHandle { * - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event. * - infinite animations are canceled to initial state, and then played over after the screenshot. * - * Defaults to `"allow"`. + * Defaults to `"allow"` that leaves animations untouched. */ animations?: "disabled"|"allow"; @@ -15600,7 +15600,7 @@ export interface LocatorScreenshotOptions { * - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event. * - infinite animations are canceled to initial state, and then played over after the screenshot. * - * Defaults to `"allow"`. + * Defaults to `"allow"` that leaves animations untouched. */ animations?: "disabled"|"allow"; @@ -15753,7 +15753,7 @@ export interface PageScreenshotOptions { * - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event. * - infinite animations are canceled to initial state, and then played over after the screenshot. * - * Defaults to `"allow"`. + * Defaults to `"allow"` that leaves animations untouched. */ animations?: "disabled"|"allow";