From b6e59f84abcc144a99495435a1d55558b42437dd Mon Sep 17 00:00:00 2001 From: Joeri de Gooijer Date: Fri, 5 Jul 2024 10:29:19 -0700 Subject: [PATCH] build(setup): Dont use auto 'event' regex in storybook Its deprecated --- .storybook/preview.ts | 1 - package.json | 2 +- src/components/br-search/br-search.qa.stories.tsx | 9 ++++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index acadf7a..0993d4d 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -4,7 +4,6 @@ import THEME from './theme'; const preview: Preview = { tags: ['autodocs'], parameters: { - actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { color: /(background|color)$/i, diff --git a/package.json b/package.json index fcbd6d7..7e40b83 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "generate": "plop", "storybook": "storybook dev -p 6006", "storybook:build": "storybook build", - "e2e": "pnpm storybook:build && playwright test", + "e2e": "playwright test", "e2e:report": "playwright show-report" }, "dependencies": { diff --git a/src/components/br-search/br-search.qa.stories.tsx b/src/components/br-search/br-search.qa.stories.tsx index d5dfae6..44342c8 100644 --- a/src/components/br-search/br-search.qa.stories.tsx +++ b/src/components/br-search/br-search.qa.stories.tsx @@ -7,9 +7,12 @@ const meta: Meta = { title: 'BrSearch/QA', decorators: [ (Story) => ( -
- -
+ <> +

Hello world

+
+ +
+ ), ], };