Skip to content

Commit

Permalink
Define initial placement for mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-medvedev-vk committed Oct 21, 2024
1 parent 2131e17 commit 980be26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vkui/src/testing/e2e/index.playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import { generateCustomScreenshotName } from './utils';
export type { VKUITestOptions } from './types';

export const test = testBase.extend<VKUITestOptions & InternalVKUITestOptions & VKUITestHelpers>({
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 }],

Expand Down

0 comments on commit 980be26

Please sign in to comment.