Skip to content

Commit

Permalink
chore: turn off chromatic visual regression tests for all but one com…
Browse files Browse the repository at this point in the history
…ponent (PostHog#12516)

* chore: turn off chromatic visual regression tests for all but one component

* run storybook chromatic workflow if the .storybook folder changes
  • Loading branch information
pauldambra authored Oct 30, 2022
1 parent bbac280 commit 7762c9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/storybook-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
filters: |
frontend:
- 'frontend/**'
- '.storybook/**'
- name: Install dependencies and chromatic
if: steps.changes.outputs.frontend == 'true'
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ setupPosthogJs()

// Setup storybook global parameters. See https://storybook.js.org/docs/react/writing-stories/parameters#global-parameters
export const parameters = {
chromatic: { disableSnapshot: true },
actions: { argTypesRegex: '^on[A-Z].*', disabled: true },
controls: {
matchers: {
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/lib/components/LemonBadge/LemonBadge.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { LemonButton } from '../LemonButton'
export default {
title: 'Lemon UI/Lemon Badge',
component: LemonBadge,
parameters: {
chromatic: { disableSnapshot: false },
},
} as ComponentMeta<typeof LemonBadge>

const Template: ComponentStory<typeof LemonBadge> = ({ count, ...props }: LemonBadgeProps) => {
Expand Down

0 comments on commit 7762c9e

Please sign in to comment.