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
  • Loading branch information
valentinpalkovic authored May 22, 2024
2 parents 9226a94 + c48a51e commit fb255d9
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 fb255d9

Please sign in to comment.