From 91931494bd2b9e9594fd359a1ff0d69922d3fd27 Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Fri, 21 Jun 2024 15:57:06 +0200 Subject: [PATCH] :white_check_mark: - test: fix story for Tooltip --- src/components/tooltip/tooltip.stories.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/tooltip/tooltip.stories.tsx b/src/components/tooltip/tooltip.stories.tsx index ba955e5a..6c38b22a 100644 --- a/src/components/tooltip/tooltip.stories.tsx +++ b/src/components/tooltip/tooltip.stories.tsx @@ -18,8 +18,10 @@ const meta: Meta = { ], 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 }); + }); }, };