Tweak Chromatic diffThreshold to reduce false negative tests

This commit is contained in:
Gabe Kangas 2022-11-05 17:27:44 -07:00
parent fd54846f69
commit 4cdbcc642d
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA
3 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,7 @@ export default {
title: 'owncast/Chat/Chat messages container', title: 'owncast/Chat/Chat messages container',
component: ChatContainer, component: ChatContainer,
parameters: { parameters: {
chromatic: { diffThreshold: 0.2 },
docs: { docs: {
description: { description: {
component: ` component: `

View file

@ -33,6 +33,7 @@ export default {
component: ChatTextField, component: ChatTextField,
parameters: { parameters: {
fetchMock: mocks, fetchMock: mocks,
chromatic: { diffThreshold: 0.2 },
design: { design: {
type: 'image', type: 'image',

View file

@ -13,7 +13,9 @@ import { ClientConfig } from '../interfaces/client-config.model';
export default { export default {
title: 'owncast/Chat/Embeds/Read-write chat', title: 'owncast/Chat/Embeds/Read-write chat',
component: ReadWritePage, component: ReadWritePage,
parameters: {}, parameters: {
chromatic: { diffThreshold: 0.2 },
},
} as ComponentMeta<typeof ReadWritePage>; } as ComponentMeta<typeof ReadWritePage>;
const testMessages = const testMessages =