Skip to content

Commit

Permalink
test(TileGroup): add visual test story
Browse files Browse the repository at this point in the history
  • Loading branch information
oreqizer committed Oct 26, 2023
1 parent f6e0dac commit d16c08c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion packages/orbit-components/src/TileGroup/TileGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {

export const DefaultJustWrapper = () => {
const dataTest = text("dataTest", "test");
const as = text("as", "");
const as = text("as", "div");

const content = text("content", "Lorem ipsum dolor sit amet");
return (
Expand Down Expand Up @@ -259,3 +259,27 @@ Rtl.story = {
info: "This is a preview of this component in RTL setup.",
},
};

export const VisualTest = () => {
return (
<TileGroup>
<Tile expandable title="Tile">
Tile expandable
</Tile>
<Tile expandable title="Tile">
Tile expandable
</Tile>
<Tile expandable title="Tile">
Tile expandable
</Tile>
</TileGroup>
);
};

VisualTest.story = {
parameters: {
chromatic: {
disableSnapshot: false,
},
},
};

0 comments on commit d16c08c

Please sign in to comment.