From 4cdbcc642da3b237a110ddf384f2917aa97c66bc Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 5 Nov 2022 17:27:44 -0700 Subject: [PATCH] Tweak Chromatic diffThreshold to reduce false negative tests --- web/components/chat/ChatContainer/ChatContainer.stories.tsx | 1 + web/components/chat/ChatTextField/ChatTextField.stories.tsx | 1 + web/stories/ReadwriteChat.stories.tsx | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/components/chat/ChatContainer/ChatContainer.stories.tsx b/web/components/chat/ChatContainer/ChatContainer.stories.tsx index 11be540ac..f12616e28 100644 --- a/web/components/chat/ChatContainer/ChatContainer.stories.tsx +++ b/web/components/chat/ChatContainer/ChatContainer.stories.tsx @@ -8,6 +8,7 @@ export default { title: 'owncast/Chat/Chat messages container', component: ChatContainer, parameters: { + chromatic: { diffThreshold: 0.2 }, docs: { description: { component: ` diff --git a/web/components/chat/ChatTextField/ChatTextField.stories.tsx b/web/components/chat/ChatTextField/ChatTextField.stories.tsx index 3db664ee0..5586eb2dd 100644 --- a/web/components/chat/ChatTextField/ChatTextField.stories.tsx +++ b/web/components/chat/ChatTextField/ChatTextField.stories.tsx @@ -33,6 +33,7 @@ export default { component: ChatTextField, parameters: { fetchMock: mocks, + chromatic: { diffThreshold: 0.2 }, design: { type: 'image', diff --git a/web/stories/ReadwriteChat.stories.tsx b/web/stories/ReadwriteChat.stories.tsx index 89e57f703..7e618f764 100644 --- a/web/stories/ReadwriteChat.stories.tsx +++ b/web/stories/ReadwriteChat.stories.tsx @@ -13,7 +13,9 @@ import { ClientConfig } from '../interfaces/client-config.model'; export default { title: 'owncast/Chat/Embeds/Read-write chat', component: ReadWritePage, - parameters: {}, + parameters: { + chromatic: { diffThreshold: 0.2 }, + }, } as ComponentMeta; const testMessages =