From ccf3219ad2b0d320cd8e7339051a8a7ae1e910bf Mon Sep 17 00:00:00 2001 From: Adam Howard <91115+codeincontext@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:06:10 +0100 Subject: [PATCH] test: add missing chromatic modes --- .../AppComponents/Chat/chat-message/index.stories.tsx | 4 ++++ .../src/components/Onboarding/TermsContent.stories.tsx | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/apps/nextjs/src/components/AppComponents/Chat/chat-message/index.stories.tsx b/apps/nextjs/src/components/AppComponents/Chat/chat-message/index.stories.tsx index e2901608f..022e5f8bb 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/chat-message/index.stories.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/chat-message/index.stories.tsx @@ -1,6 +1,7 @@ import type { Meta, StoryObj } from "@storybook/react"; import { ChatModerationProvider } from "@/components/ContextProviders/ChatModerationContext"; +import { chromaticParams } from "@/storybook/chromatic"; import { ChatMessage } from "./"; @@ -20,6 +21,9 @@ const meta = { persistedModerations: [], ailaStreamingStatus: "Idle", }, + parameters: { + ...chromaticParams(["mobile", "desktop"]), + }, } satisfies Meta; export default meta; diff --git a/apps/nextjs/src/components/Onboarding/TermsContent.stories.tsx b/apps/nextjs/src/components/Onboarding/TermsContent.stories.tsx index d3a282067..87b806da8 100644 --- a/apps/nextjs/src/components/Onboarding/TermsContent.stories.tsx +++ b/apps/nextjs/src/components/Onboarding/TermsContent.stories.tsx @@ -1,10 +1,15 @@ import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "@/storybook/chromatic"; + import TermsContent from "./TermsContent"; const meta = { title: "Components/Onboarding/TermsContent", component: TermsContent, + parameters: { + ...chromaticParams(["mobile", "desktop"]), + }, } satisfies Meta; export default meta;