mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
raise threshold to avoid false positives on image diff
This commit is contained in:
parent
3464004f23
commit
ce0ae13343
@ -24,7 +24,7 @@ if (!fs.existsSync(pathToStorybookStatic)) {
|
||||
test: imageSnapshot({
|
||||
storybookUrl: `file://${pathToStorybookStatic}`,
|
||||
getMatchOptions: () => ({
|
||||
failureThreshold: 0.01, // 1% threshold,
|
||||
failureThreshold: 0.06, // 6% threshold,
|
||||
failureThresholdType: 'percent',
|
||||
}),
|
||||
beforeScreenshot: (page, { context }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user