diff --git a/playwright/core/mountFixture.tsx b/playwright/core/mountFixture.tsx index 0c285050cf..988c88c412 100644 --- a/playwright/core/mountFixture.tsx +++ b/playwright/core/mountFixture.tsx @@ -1,23 +1,19 @@ import React from 'react'; -import type {JsonObject} from '@playwright/experimental-ct-core/types/component'; -import type {MountOptions} from '@playwright/experimental-ct-react'; - import type {MountFixture, PlaywrightFixture} from './types'; export const mountFixture: PlaywrightFixture = async ({mount: baseMount}, use) => { - const mount = async ( - component: JSX.Element, - options?: MountOptions | undefined, - ) => { + const mount: MountFixture = async (component, options) => { + const {wrapDivStyles, ...restOptions} = options || {}; + return await baseMount(
{component}
, - options, + restOptions, ); }; diff --git a/playwright/core/types.ts b/playwright/core/types.ts index 9a4c6d6862..4487ecc002 100644 --- a/playwright/core/types.ts +++ b/playwright/core/types.ts @@ -1,3 +1,5 @@ +import type React from 'react'; + import type {JsonObject} from '@playwright/experimental-ct-core/types/component'; import type {MountOptions, MountResult} from '@playwright/experimental-ct-react'; import type { @@ -13,7 +15,7 @@ import type { interface ComponentFixtures { mount( component: JSX.Element, - options?: MountOptions, + options?: MountOptions & {wrapDivStyles?: React.CSSProperties}, ): Promise; } diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-chromium-linux.png index 552ad5bfa7..680814a64e 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-webkit-linux.png index e8fc91778e..22ec8eda34 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-chromium-linux.png index 64d7c5d2e6..ca6705b81d 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-webkit-linux.png index f696f0ee6a..ac63a246f6 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValues-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-chromium-linux.png index aec02a5fee..1006dd9592 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-webkit-linux.png index a01dbc64e0..da5d8aad56 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-chromium-linux.png index b9e9ac9665..0f159fc4fd 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-webkit-linux.png index 93b4afea11..1c7f466f34 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-AvailableValuesRange-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-chromium-linux.png index 00c594e158..00f28d0de8 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-webkit-linux.png index 555ab0fa69..ce58dd5335 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-chromium-linux.png index 0a4309e824..9b702d836f 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-webkit-linux.png index 271acef2f8..e71e329345 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Default-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-chromium-linux.png index 33682cc8e4..f4cc69c7b3 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-webkit-linux.png index 25400608d8..c35d1ab276 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-chromium-linux.png index 18010d66ae..224972e87e 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-webkit-linux.png index f9095f651a..bb7d96b267 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DefaultRange-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-chromium-linux.png index 59fe8e532b..c3d080c3af 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-webkit-linux.png index d5a9522ee3..088f9c8257 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-chromium-linux.png index a33c39a31a..d8ead4f45e 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-webkit-linux.png index 5f052b1631..6f133a0a9e 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Disabled-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-chromium-linux.png index b0e3231b1a..71ed3888ea 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-webkit-linux.png index 70eed1035d..697df8578f 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-chromium-linux.png index e1e1e83843..67721d9d55 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-webkit-linux.png index 04724f6a5c..21e1141f9d 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-DisabledRange-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-chromium-linux.png index a9e0a5f875..90e49ea722 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-webkit-linux.png index eae33e80f1..1b6fe35303 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-chromium-linux.png index a8c8a5aa3d..bf5e3ed657 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-webkit-linux.png index 1622dd2ac0..2df5577927 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Error-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-chromium-linux.png index 40ffc10c60..550216d939 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-webkit-linux.png index a513711814..9e24a842bd 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-chromium-linux.png index 5ad13ca58a..c8f640a35f 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-webkit-linux.png index b473fb4ae2..dc8cdfc0a7 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-ErrorRange-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-chromium-linux.png index 48ce5969fa..f6da87ce12 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-webkit-linux.png index 18080c8c7c..f91bdefaec 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-chromium-linux.png index 9067a425e3..d6205e85df 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-webkit-linux.png index 9fedbc9f74..f510044e4c 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCount-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-chromium-linux.png index 2ecd7264d2..685aaf4e02 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-webkit-linux.png index a0c8e13de8..528bd9c390 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-chromium-linux.png index a6f4e69e44..508811fa96 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-webkit-linux.png index ca6782a80e..bd7be7ac86 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-MarksCountRange-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-chromium-linux.png index 0831a0efc5..a6e1b33c2d 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-webkit-linux.png index c9ee29b169..9edb7b375c 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-chromium-linux.png index 7452963f0c..bef876f50a 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-webkit-linux.png index a74399da4c..cde0000e58 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Size-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-chromium-linux.png index 9157e85249..75f7b3c0e1 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-webkit-linux.png index 8bbb75d0cf..bf488f364f 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-chromium-linux.png index 68733ef4ab..1de910ddaa 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-webkit-linux.png index 4462402558..5fd6b254ee 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-SizeRange-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-chromium-linux.png index d5d8b1e9fe..20835663de 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-webkit-linux.png index f92bbab217..91f07d08f6 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-chromium-linux.png index 24025af708..e5f168988e 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-webkit-linux.png index fff4328d65..bb77e3f4d2 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-Tooltip-light-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-chromium-linux.png index 3a3e674547..bed5c61d94 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-webkit-linux.png index 9d435ace0a..e55bb78a48 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-dark-webkit-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-chromium-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-chromium-linux.png index b543ab8947..3b85e708cb 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-chromium-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-chromium-linux.png differ diff --git a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-webkit-linux.png b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-webkit-linux.png index 401bddcddb..9d23a2fa5a 100644 Binary files a/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-webkit-linux.png and b/src/components/Slider/__snapshots__/Slider.visual.test.tsx-snapshots/Slider-render-story-TooltipRange-light-webkit-linux.png differ diff --git a/src/components/Slider/__tests__/Slider.visual.test.tsx b/src/components/Slider/__tests__/Slider.visual.test.tsx index 2e8669cc51..17043e22d4 100644 --- a/src/components/Slider/__tests__/Slider.visual.test.tsx +++ b/src/components/Slider/__tests__/Slider.visual.test.tsx @@ -4,87 +4,93 @@ import {test} from '~playwright/core'; import {SliderStories} from './helpersPlaywright'; +const mountOptions = { + wrapDivStyles: { + minWidth: 300, + }, +}; + test.describe('Slider', () => { test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); }); test('render story: ', async ({mount, expectScreenshot}) => { - await mount(); + await mount(, mountOptions); await expectScreenshot(); });