diff --git a/playwright/playwright.config.ts b/playwright/playwright.config.ts index f859bbd8b5..c80db51edd 100644 --- a/playwright/playwright.config.ts +++ b/playwright/playwright.config.ts @@ -45,10 +45,6 @@ const config: PlaywrightTestConfig = { reporter, /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { - viewport: { - width: 1200, - height: 900, - }, testIdAttribute: 'data-qa', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', diff --git a/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-chromium-linux.png b/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-chromium-linux.png index 85d2bc0f01..a724ff1040 100644 Binary files a/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-chromium-linux.png and b/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-chromium-linux.png differ diff --git a/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-webkit-linux.png b/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-webkit-linux.png index c0890c7d55..e495921e45 100644 Binary files a/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-webkit-linux.png and b/src/components/Button/__snapshots__/Button.visual.test.tsx-snapshots/Button-ButtonViewShowcase-1-webkit-linux.png differ diff --git a/src/components/Button/__tests__/Button.visual.test.tsx b/src/components/Button/__tests__/Button.visual.test.tsx index 08edac4fc9..b8b518c5e9 100644 --- a/src/components/Button/__tests__/Button.visual.test.tsx +++ b/src/components/Button/__tests__/Button.visual.test.tsx @@ -3,6 +3,7 @@ import React from 'react'; import {Gear} from '@gravity-ui/icons'; import {expect, test} from '@playwright/experimental-ct-react'; +import {WrapperTest} from '../../../../playwright/helpers'; import {Button} from '../Button'; import {ButtonViewShowcase} from '../__stories__/ButtonViewShowcase'; @@ -104,7 +105,11 @@ test.describe('Button', () => { }); test('ButtonViewShowcase', async ({mount}) => { - const component = await mount(); + const component = await mount( + + + , + ); await expect(component).toHaveScreenshot(); });