From a41f8c362734332351d7f1542ea9215cb1c95686 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 3 Jan 2025 16:06:26 -0800 Subject: [PATCH] fix lint snippets --- docs/src/touch-events.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/src/touch-events.md b/docs/src/touch-events.md index 86a0d03ad2..881688e70c 100644 --- a/docs/src/touch-events.md +++ b/docs/src/touch-events.md @@ -36,7 +36,8 @@ async function pan(locator: Locator, deltaX?: number, deltaY?: number, steps?: n clientX: centerX, clientY: centerY, }]; - await locator.dispatchEvent('touchstart', { touches, changedTouches: touches, targetTouches: touches }); + await locator.dispatchEvent('touchstart', + { touches, changedTouches: touches, targetTouches: touches }); steps = steps ?? 5; deltaX = deltaX ?? 0; @@ -75,7 +76,8 @@ import { test, expect, devices, type Locator } from '@playwright/test'; test.use({ ...devices['Pixel 7'] }); -async function pinch(locator: Locator, arg: { deltaX?: number, deltaY?: number, steps?: number, direction?: 'in' | 'out' }) { +async function pinch(locator: Locator, + arg: { deltaX?: number, deltaY?: number, steps?: number, direction?: 'in' | 'out' }) { const { centerX, centerY } = await locator.evaluate((target: HTMLElement) => { const bounds = target.getBoundingClientRect(); const centerX = bounds.left + bounds.width / 2;