From f75b5150de812903309b044668b5e519a903aea6 Mon Sep 17 00:00:00 2001 From: Constantin Dusescu Date: Mon, 6 Nov 2023 11:18:44 +0100 Subject: [PATCH] Change loading wait timer from 200ms to 300ms --- src/components/Loading/Loading.test.tsx | 2 +- src/components/Loading/Loading.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Loading/Loading.test.tsx b/src/components/Loading/Loading.test.tsx index 626ba38..6c9132d 100644 --- a/src/components/Loading/Loading.test.tsx +++ b/src/components/Loading/Loading.test.tsx @@ -11,7 +11,7 @@ describe("Given a Loading Component", () => { render(); - act(() => vi.advanceTimersByTime(200)); + act(() => vi.advanceTimersByTime(300)); const loadingAnimation = screen.getByLabelText(loadingAnimationName); diff --git a/src/components/Loading/Loading.tsx b/src/components/Loading/Loading.tsx index fe491e5..272f7d2 100644 --- a/src/components/Loading/Loading.tsx +++ b/src/components/Loading/Loading.tsx @@ -7,7 +7,7 @@ const Loading = (): React.ReactElement => { useEffect(() => { const timer = setTimeout(() => { setShowLoading(true); - }, 200); + }, 300); return () => clearTimeout(timer); }, []);