Skip to content

Commit

Permalink
test(dialog): ensure test story showcasing longer header content is c…
Browse files Browse the repository at this point in the history
…aptured by Chromatic
  • Loading branch information
Parsium committed Oct 11, 2024
1 parent 878326a commit a488fa8
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/components/dialog/dialog-test.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
FlexTileDivider,
Tile,
} from "../tile";
import { allModes } from "../../../.storybook/modes";

export default {
title: "Dialog/Test",
Expand Down Expand Up @@ -299,11 +300,34 @@ MaxSizeTestNonOverflowedForm.decorators = [

MaxSizeTestNonOverflowedForm.parameters = {
themeProvider: { chromatic: { theme: "none" } },
chromatic: { disableSnapshot: false, viewports: [1200, 900] },
chromatic: {
disableSnapshot: false,
modes: {
lg: allModes.lg,
xsm: allModes.xsm,
},
},
layout: "fullscreen",
};

export const DialogWithLongHeaderContent: StoryType = {
parameters: {
chromatic: {
disableSnapshot: false,
modes: {
lg: allModes.lg,
xsm: allModes.xsm,
},
},
layout: "fullscreen",
},
decorators: [
(Story) => (
<div style={{ height: "100vh", width: "100vw" }}>
<Story />
</div>
),
],
render: ({ size, ...args }) => (
<Dialog
{...args}
Expand Down

0 comments on commit a488fa8

Please sign in to comment.