Skip to content

Commit

Permalink
build(setup): Dont use auto 'event' regex in storybook
Browse files Browse the repository at this point in the history
Its deprecated
  • Loading branch information
joerideg committed Jul 5, 2024
1 parent b0576c8 commit b6e59f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
9 changes: 6 additions & 3 deletions src/components/br-search/br-search.qa.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ const meta: Meta = {
title: 'BrSearch/QA',
decorators: [
(Story) => (
<div className="qa-story" style={{ padding: '2em' }}>
<Story />
</div>
<>
<h1>Hello world</h1>
<div className="qa-story" style={{ padding: '2em' }}>
<Story />
</div>
</>
),
],
};
Expand Down

0 comments on commit b6e59f8

Please sign in to comment.