From a516557bb63a711fb7b20eb7e932f4f7b0bd28e5 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 13 Jul 2023 01:59:57 +0200 Subject: [PATCH] Update MkAd.stories.impl.ts --- packages/frontend/src/components/global/MkAd.stories.impl.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/src/components/global/MkAd.stories.impl.ts b/packages/frontend/src/components/global/MkAd.stories.impl.ts index 58b6cc14c..bd895bf80 100644 --- a/packages/frontend/src/components/global/MkAd.stories.impl.ts +++ b/packages/frontend/src/components/global/MkAd.stories.impl.ts @@ -4,6 +4,7 @@ import { userEvent, waitFor, within } from '@storybook/testing-library'; import { StoryObj } from '@storybook/vue3'; import MkAd from './MkAd.vue'; import { i18n } from '@/i18n'; +import { tick } from '@/scripts/test-utils'; const common = { render(args) { return { @@ -37,6 +38,7 @@ const common = { await expect(i).toBeInTheDocument(); await userEvent.click(i); await waitFor(() => expect(canvasElement).toHaveTextContent(i18n.ts._ad.back)); + await tick(); await expect(a).not.toBeInTheDocument(); await expect(i).not.toBeInTheDocument(); buttons = canvas.getAllByRole('button');