Skip to content

Commit

Permalink
Merge pull request #28778 from storybookjs/chromatic-ignore-stacktrace
Browse files Browse the repository at this point in the history
Build: Raise Chromatic threshold for inconsistent snapshot of monospace text
  • Loading branch information
ghengeveld authored Aug 1, 2024
2 parents 2ebbeed + 12f8343 commit d419bc6
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions code/core/src/manager/components/preview/Iframe.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,23 @@ WorkingStory.parameters = {
chromatic: { disable: true },
};

export const MissingStory = () => (
<IFrame
active
id="iframe"
title="Missing"
src="/iframe.html?id=missing"
allowFullScreen
style={style}
scale={1.0}
/>
);
export const MissingStory = {
render: () => (
<IFrame
active
id="iframe"
title="Missing"
src="/iframe.html?id=missing"
allowFullScreen
style={style}
scale={1.0}
/>
),
parameters: {
// Raise the threshold to ignore monospace font inconsistencies
chromatic: { diffThreshold: 0.65 },
},
};

export const PreparingStory = () => (
<IFrame
Expand Down

0 comments on commit d419bc6

Please sign in to comment.