Skip to content

Commit

Permalink
✅ - test: fix story for Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Jun 21, 2024
1 parent 473d7aa commit 9193149
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/tooltip/tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ const meta: Meta<typeof Tooltip> = {
],
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
const button = canvas.getByRole("button");
await userEvent.hover(button);
const buttons = canvas.getAllByRole("button");
buttons.forEach(async (button) => {
await userEvent.hover(button, { delay: 10 });
});
},
};

Expand Down

0 comments on commit 9193149

Please sign in to comment.