lost-pixel / lost-pixel

Open source alternative to Percy, Chromatic, Applitools.

Home Page:https://lost-pixel.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to skip screenshot for individual stories

andrewangelle opened this issue · comments

Mode

Storybook

Feature description

Couldn't find anything in documentation or examples for this. Please correct me if I missed this somewhere.

Request: An ability to skip screenshots for an individual story. Other similar tools will respect a flag on the story parameters. Something like the following...

const ExampleStory = {
  title: 'Story Title',
  component: MyComponent,
  parameters: {
    lostPixel: {
      skip: true
    }
  }
}

Hey @andrewangelle! it would be:

lostpixel: { disable: true },

I will document this better, thanks for the heads up!

@andrewangelle Here are all the options in the story params we support:

lostpixel?: {
disable?: boolean;
threshold?: number;
waitBeforeScreenshot?: number;
mask?: Mask[];
};