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.
This commit is contained in:
Andrey Lushnikov 2022-03-10 18:26:50 -07:00 committed by GitHub
parent 689d8196e0
commit 65b9cba143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ export type ScreenshotOptions = {
type?: 'png' | 'jpeg', type?: 'png' | 'jpeg',
quality?: number, quality?: number,
omitBackground?: boolean, omitBackground?: boolean,
animations?: 'disabled', animations?: 'disabled' | 'allow',
mask?: { frame: Frame, selector: string}[], mask?: { frame: Frame, selector: string}[],
fullPage?: boolean, fullPage?: boolean,
clip?: Rect, clip?: Rect,

View File

@ -8070,7 +8070,7 @@ export interface ElementHandle<T=Node> extends JSHandle<T> {
* - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event. * - 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. * - 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"; animations?: "disabled"|"allow";
@ -15600,7 +15600,7 @@ export interface LocatorScreenshotOptions {
* - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event. * - 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. * - 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"; animations?: "disabled"|"allow";
@ -15753,7 +15753,7 @@ export interface PageScreenshotOptions {
* - finite animations are fast-forwarded to completion, so they'll fire `transitionend` event. * - 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. * - 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"; animations?: "disabled"|"allow";