From d8bf8331271345b6d19c9090d294ab1b4172624d Mon Sep 17 00:00:00 2001 From: ssi02014 Date: Thu, 20 Jun 2024 20:35:27 +0900 Subject: [PATCH] =?UTF-8?q?test:=20FallbackLazyImage=20test=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/FallbackLazyImage/FallbackLazyImage.spec.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react/src/components/FallbackLazyImage/FallbackLazyImage.spec.tsx b/packages/react/src/components/FallbackLazyImage/FallbackLazyImage.spec.tsx index ddddbf1b3..c83537e4a 100644 --- a/packages/react/src/components/FallbackLazyImage/FallbackLazyImage.spec.tsx +++ b/packages/react/src/components/FallbackLazyImage/FallbackLazyImage.spec.tsx @@ -68,7 +68,9 @@ describe('FallbackLazyImage', () => { img1.dispatchEvent(new Event('load')); }); - expect(screen.queryByText('Fallback')).not.toBeInTheDocument(); - expect(onLoadMockFn).toBeCalled(); + await waitFor(() => { + expect(screen.queryByText('Fallback')).not.toBeInTheDocument(); + expect(onLoadMockFn).toBeCalled(); + }); }); });