diff --git a/packages/vkui/src/testing/e2e/index.playwright.ts b/packages/vkui/src/testing/e2e/index.playwright.ts index f326393f1e9..a5b5bd02ea4 100644 --- a/packages/vkui/src/testing/e2e/index.playwright.ts +++ b/packages/vkui/src/testing/e2e/index.playwright.ts @@ -27,6 +27,11 @@ import { generateCustomScreenshotName } from './utils'; export type { VKUITestOptions } from './types'; export const test = testBase.extend({ + page: async function initialMouseSetup({ page }, use) { + await page.mouse.move(0, 0); + // eslint-disable-next-line react-hooks/rules-of-hooks + await use(page); + }, platform: ['android', { option: true }], colorSchemeType: ['light', { option: true }],