diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-dark-chromium-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-dark-chromium-linux.png deleted file mode 100644 index b349c60904..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-dark-chromium-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-dark-webkit-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-dark-webkit-linux.png deleted file mode 100644 index 5da95e9ada..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-dark-webkit-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-light-chromium-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-light-chromium-linux.png deleted file mode 100644 index 7c3dbe3c50..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-light-chromium-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-light-webkit-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-light-webkit-linux.png deleted file mode 100644 index ffaa56deff..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-default-light-webkit-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-dark-chromium-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-dark-chromium-linux.png deleted file mode 100644 index b349c60904..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-dark-chromium-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-dark-webkit-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-dark-webkit-linux.png deleted file mode 100644 index 5da95e9ada..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-dark-webkit-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-light-chromium-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-light-chromium-linux.png deleted file mode 100644 index 7c3dbe3c50..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-light-chromium-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-light-webkit-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-light-webkit-linux.png deleted file mode 100644 index ffaa56deff..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-horizontal-light-webkit-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-dark-chromium-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-dark-chromium-linux.png deleted file mode 100644 index 349d620930..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-dark-chromium-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-dark-webkit-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-dark-webkit-linux.png deleted file mode 100644 index a74bf023a0..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-dark-webkit-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-light-chromium-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-light-chromium-linux.png deleted file mode 100644 index e410cfadfc..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-light-chromium-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-light-webkit-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-light-webkit-linux.png deleted file mode 100644 index af51ad8829..0000000000 Binary files a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-orientation-vertical-light-webkit-linux.png and /dev/null differ diff --git a/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-smoke-light-chromium-linux.png b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-smoke-light-chromium-linux.png new file mode 100644 index 0000000000..a25f526a08 Binary files /dev/null and b/src/components/Divider/__snapshots__/Divider.visual.test.tsx-snapshots/Divider-smoke-smoke-light-chromium-linux.png differ diff --git a/src/components/Divider/__tests__/Divider.visual.test.tsx b/src/components/Divider/__tests__/Divider.visual.test.tsx index 8a7620f55b..7f372038b8 100644 --- a/src/components/Divider/__tests__/Divider.visual.test.tsx +++ b/src/components/Divider/__tests__/Divider.visual.test.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import {test} from '~playwright/core'; +import {smokeTest, test} from '~playwright/core'; import {createSmokeScenarios} from '../../../stories/tests-factory/create-smoke-scenarios'; import type {DividerProps} from '../Divider'; @@ -9,15 +9,28 @@ import {orientationCases} from './cases'; import {ListWithDivider} from './helpers'; test.describe('Divider', {tag: '@Divider'}, () => { - const defaultProps: DividerProps = {}; + smokeTest('smoke', async ({mount, expectScreenshot}) => { + const defaultProps: DividerProps = {}; - createSmokeScenarios(defaultProps, { - orientation: orientationCases, - }).forEach(([title, details, props]) => { - test(title, details, async ({mount, expectScreenshot}) => { - await mount(); + const smokeScenarios = createSmokeScenarios(defaultProps, { + orientation: orientationCases, + }); + + await mount( +
+ {smokeScenarios.map(([title, props]) => ( +
+

{title}

+
+ +
+
+ ))} +
, + ); - await expectScreenshot(); + await expectScreenshot({ + themes: ['light'], }); }); });