From 5d4ab609f5b9c2f35a70caeaeb248ff753cbd060 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 13 Jul 2023 02:23:32 +0200 Subject: [PATCH] Update MkAd.stories.impl.ts --- packages/frontend/src/components/global/MkAd.stories.impl.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/global/MkAd.stories.impl.ts b/packages/frontend/src/components/global/MkAd.stories.impl.ts index bd895bf80..0b457ce55 100644 --- a/packages/frontend/src/components/global/MkAd.stories.impl.ts +++ b/packages/frontend/src/components/global/MkAd.stories.impl.ts @@ -53,6 +53,7 @@ const common = { await expect(back).toHaveTextContent(i18n.ts._ad.back); await userEvent.click(back); await waitFor(() => expect(canvas.queryByRole('img')).toBeTruthy()); + await tick(); if (reduce) { await expect(reduce).not.toBeInTheDocument(); }