From ba1fd6a815d30d9ced98edda4d35d62d59a486fc Mon Sep 17 00:00:00 2001 From: Matt Driscoll Date: Fri, 7 Jul 2023 15:00:30 -0700 Subject: [PATCH] test(stack): stabilize screenshot tests Set thumbnail image locally for consistency --- .../src/components/stack/stack.stories.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/calcite-components/src/components/stack/stack.stories.ts b/packages/calcite-components/src/components/stack/stack.stories.ts index 8494bda2c23..56e155ff568 100644 --- a/packages/calcite-components/src/components/stack/stack.stories.ts +++ b/packages/calcite-components/src/components/stack/stack.stories.ts @@ -1,4 +1,5 @@ import { modesDarkDefault } from "../../../.storybook/utils"; +import { placeholderImage } from "../../../.storybook/placeholderImage"; import readme from "./readme.md"; import { html } from "../../../support/formatting"; import { storyFilters } from "../../../.storybook/helpers"; @@ -11,10 +12,12 @@ export default { ...storyFilters() }; +const thumbnailImage = placeholderImage({ width: 44, height: 44 }); + const simpleHTML = html` Hello World - + My great chip `; @@ -27,7 +30,7 @@ simpleDarkMode_TestOnly.parameters = { modes: modesDarkDefault }; export const disabled_TestOnly = (): string => html` Hello World - + My great chip `; @@ -38,7 +41,7 @@ export const panelFooter_TestOnly = (): string => html` - + My great chip