Skip to content

Commit 57232d6

Browse files
committed
chore(Menu): add chromatic delay to interactive story
- this is to help prevent storybook flakiness
1 parent 7af6e5e commit 57232d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/Menu/Menu.stories.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ export const MenuWithAvatarButton: StoryObj<MenuProps> = {
203203

204204
export const Opened: StoryObj<MenuProps> = {
205205
...Default,
206+
parameters: {
207+
...Default.parameters,
208+
// Sets the delay (in milliseconds) for a specific story.
209+
chromatic: { delay: 300 },
210+
},
206211
play: () => {
207212
userEvent.tab();
208213
userEvent.keyboard(' ');

0 commit comments

Comments
 (0)