Skip to content

Commit

Permalink
test(Separator): add visual test
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Nov 5, 2023
1 parent f3894de commit c687309
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions packages/orbit-components/src/Separator/Separator.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,42 @@ export const Rtl = () => (
</RenderInRtl>
);

export const VisualTest = () => {
return (
<div className="space-y-md flex flex-col">
<Separator />
<Separator type="dotted" />
<Separator type="dashed" />
<Separator type="double" />
<Separator color="paletteRedNormal" type="solid" />
<Separator color="paletteBlueNormal" type="solid" />
<Separator color="paletteProductNormal" indent="small" type="solid" />
<Separator color="paletteProductNormal" indent="medium" type="solid" />
<Separator color="paletteProductNormal" indent="large" type="solid" />
<Separator color="paletteProductNormal" indent="XLarge" type="solid" />
<Separator color="paletteProductNormal" indent="XXLarge" type="solid" />
<Separator align="left" indent="large" color="paletteBundleBasic" type="solid" />
<Separator align="right" indent="large" color="paletteBundleBasic" type="solid" />
<Separator align="center" indent="XXLarge" color="paletteBundleBasic" type="solid" />
<Separator spaceAfter="smallest" />
<Separator spaceAfter="small" />
<Separator spaceAfter="medium" />
<Separator spaceAfter="medium" />
<Separator spaceAfter="large" />
<Separator spaceAfter="largest" />
</div>
);
};

VisualTest.story = {
name: "Separator visual story",
parameters: {
chromatic: {
disableSnapshot: false,
},
},
};

Rtl.story = {
name: "RTL",

Expand Down

0 comments on commit c687309

Please sign in to comment.