Skip to content

Commit

Permalink
Merge pull request #27225 from storybookjs/valentin/disable-snapshott…
Browse files Browse the repository at this point in the history
…ing-for-stories

Build: Exclude stories from snapshotting
(cherry picked from commit fb255d9)
  • Loading branch information
valentinpalkovic authored and storybook-bot committed May 27, 2024
1 parent fba174b commit 4af74b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/ui/blocks/src/blocks/Story.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ export const WithInteractionsAutoplayInParameters: Story = {

export const ForceInitialArgs: Story = {
...StoryComponentStories.ForceInitialArgs,
parameters: {
chromatic: { disableSnapshot: true },
},
args: {
of: ButtonStories.Primary,
storyExport: ButtonStories.Primary,
Expand Down
3 changes: 3 additions & 0 deletions code/ui/blocks/src/components/Story.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export const ForceInitialArgs = {
forceInitialArgs: true,
renderStoryToElement,
},
parameters: {
chromatic: { disableSnapshot: true },
},
// test that it ignores updated args by emitting an arg update and assert that it isn't reflected in the DOM
play: async ({ args, canvasElement, loaded }: PlayFunctionContext<WebRenderer>) => {
const docsContext = loaded.docsContext as DocsContextProps;
Expand Down

0 comments on commit 4af74b6

Please sign in to comment.