Skip to content

Commit

Permalink
chore(Menu): add chromatic delay to interactive story
Browse files Browse the repository at this point in the history
- this is to help prevent storybook flakiness
  • Loading branch information
booc0mtaco committed Sep 7, 2023
1 parent 7af6e5e commit 57232d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Menu/Menu.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ export const MenuWithAvatarButton: StoryObj<MenuProps> = {

export const Opened: StoryObj<MenuProps> = {
...Default,
parameters: {
...Default.parameters,
// Sets the delay (in milliseconds) for a specific story.
chromatic: { delay: 300 },
},
play: () => {
userEvent.tab();
userEvent.keyboard(' ');
Expand Down

0 comments on commit 57232d6

Please sign in to comment.